Message from JavaScript discussions

May 2019

— Can anyone explain this obfuscated variable declaration in JavaScript:


let allH2 = document.getElementsByTagName("h2");
for (let i = 0; i < allH2.length; i++) {

— The id is unique. you cannot assign the same ID to multiple items, only one per page can have a specific ID.

Message permanent page

— Please check properly.
I didn't use Id.
The id is for a different purpose

— I later injected it through js and it worked perfectly

— But I will still like to know how to do the DOM selection incase of next time😁

— Select using the id, class or tag name

— Https://

— Sup bro, did andela invite u?

— How to write code for couple expired in Javascript

— Has anyone here worked with the Facebook api

— In php