Message from JavaScript discussions

June 2018

— .forEach


Var elements =document.getElementByClass('desc' )>element.innerText=element.innerText.toUppercase()

— Haven't tested this but you can try

— 1. NodeLists don't have .map
2. You're mapping elements to strings now, this would return a list of uppercased strings, which is pointless

Message permanent page

— Juzuz. its hot in here. i have about 40 degrees. questions are.. very simple, ye. never heard about getElementByClass. querySelectorAll i suppose..

Message permanent page

— It might be classname

— And plural

— GetElementsBy* -> NodeList
getElementBy* -> Element

— Sorry guys.. It's a typo.. After some testing.. This is what is Working for me
var elements=document.getElementsByClassName("test")
for(var i=0;i<elements.length;i++){

Message permanent page

— You can remove the console code...

— The line

— Can also and should be