+ 1
Hello everyone. JavaScript
What does the keywords "public", "protected", "private" do? And also give me example pls
6 Antworten
+ 3
There are no public, private or advanced variables/functions in Javascript. You are possibly confusing it with other languages.
+ 1
JS marks unknown stuff purple.
+ 1
Your console also says that private isn't defined.
+ 1
Ok, thank you for explanation
+ 1
Thanks for marking as right answer :)
0
But how would you explain this? Why this words are purple color instead of white?
https://code.sololearn.com/WZ3LemLSrtrc/?ref=app