+ 1
I dont understand this portion of js plz help
2 Answers
+ 2
Its document.getElementById("ID")
Its HTML DOM(document object model) manipulation using Js
Basically 'var ID' creates a var and document.getElementById("hello") gets element with id 'hello' and assign it to var ID
Then you can change inner html of element with ID 'hello' by using
ID.innerHTML = "Hello"
You can learn more from here :
https://www.javascripttutorial.net/javascript-dom/
Or it's already in sololearn Js course
+ 2
YuZu thanks