0
Problem with Javascript
What wrong with this : const 2 = false GetElementById(2) (2) (In a begginer)
4 Antworten
+ 5
I would suggest you to start with introduction to javascript course available in the courses list.
+ 3
here is the correct syntax:-
const isFalse = false;
document.getElementById("2");
their were few error in your code
i) variable name cannot start with a numerical value
ii) Js is a case-sensitive language. getElementById not GetElementById.
iii) getElementByld Id must be string
+ 2
variable and constant names must not start with a number.
it is unclear which element you try to get.
if you need help with your code, link your code.
0
Thanks you <3