Articles tagged "javascript"
Page 2 of 3
JavaScript: Learn key value iteration
Learn key value iteration with some helpful examples. We also cover some examples using jQuery.
Javascript: Why you should use for() to iterate
If in your code you are using Array.forEach, check this blog post about the performance of javascript using for(). Learn how to improve the performance of the forEach in javascript.
How to Change a DOM element's class with JavaScript
If you want to change element class using javascript you can try: document.getElementById("ElementId").classList.add('NewClass') to add a new class. Alternative methods are remove and contains. Check here for more examples and alternatives using jQuery or coe for older browsers.
How to check if an element is hidden in jQuery?
To check if an element is hidden use: $(element).is(":visible");
How to include a JavaScript file in another JavaScript file?
In most programming lenguages is very common to include functions or classes from another file. In javascript seems to be different while handling includes, here we review how to do require or import files with javascript.
Javascript: How to set/get current URL?
Learn how to change the current url using javascript. Also learn how to get the current URL. We will explain the location object with more details, this object allows to change the query, hostname, port and more without parsing the url.
JavaScript Links: # vs javascript:void(0)
In this article we explain the differences of using "#" or "javascript:void(0)" in the href attribute. We warn you that for modern javascript you should avoid using this values in the href since it's a bad practice.
Choosing the JavaScript Framework for next project
A new year started and new javascript frameworks are starting to gain popularity. We wrote a blog post to review trending js frameworks of 2018
JavaScript Tips for Better Development
How to improve as a javascript developer. If you are an intermediate programmer and stuck at your level try to read this article and study the ideas here with more details.
How to iterate an array in javascript? (the proper way)
In this tutorial we are going to explain how to loop through all the objects in an array using JavaScript.