I’m just wondering if it’s possible to exclude the “var” part when creating a variable in JavaScript. For example if I were to type “var greeting = hi” could I just say “greeting = hi” like in Python?
Thanks.
Blancer.com Tutorials and projects
Freelance Projects, Design and Programming Tutorials
I’m just wondering if it’s possible to exclude the “var” part when creating a variable in JavaScript. For example if I were to type “var greeting = hi” could I just say “greeting = hi” like in Python?
Thanks.