#javascript
Read more stories on Hashnode
Articles with this tag
There are many events that we can use to mutate the DOM based on the event. Some examples are: Mouse: click double...
There are multiple ways to use javascript to access specific nodes in the DOM. document.getElementById() This method is very specific as IDs are...
To locate elements in an array, we can use 2 different JavaScript methods: Array.prototype.indexOf() It is called on an array and takes 2...
Array.push() and Array.unshift() These take one or more arguments, the element(s) you want to add They RETURN the length of the modified array PUSH...
Using +: To concatenate multiple strings, you can use the + to add the strings such as below: const st = "Hi, My name is " + "Romil" //this will show...
Declaring Variables: Let vs Cost Let: The main advantage of using let is that you can't redeclare the same variable a second time. This is helpful...