In Notepad ++, I wrote a JavaScript file, and something did not work: a warning was shown when the button was pressed, but it did not work.
I used the autocomplete plugin that came with Notepad ++, which introduced me to onClick .
When I changed capital C to small C , it really worked.
So, first of all, looking at the autocomplete functions, I noticed a lot of functions that use capital.
But when you change getElementById to getElementById , you also get an error, and, even worse, my school reference book writes all capital letters, but all decisions are made in small letters.
So what is JavaScript and its selective nature in relation to which functions can have capital letters and which cannot?
javascript dom html case-sensitive
Vordreller
source share