#codenewbies
Read more stories on Hashnode
Articles with this tag
Let's say we want to log obj inside this .map() function here: const arr = [ { val: 1 }, { val: 2 }, { val: 3 } ]; const nums = arr.map(obj =>...
1) <abbr> The abbreviation <abbr> element is used to represent an acronym or abbreviation. If you include a title attribute, the text will be display...
Here's a quick one! To add or remove a single class on an element you can use element.classList.add() and element.classList.remove(): // Add...
Sometimes I'll write some code that needs to be wrapped in a setTimeout: setTimeout(myFunc, 1000); If my function took any arguments, it would bum...