0
Why there are no other data types in java script other than var??
4 Answers
+ 3
read this :
https://www.sololearn.com/learn/315/?ref=app
*EDIT : read the comment also .
+ 3
JavaScript is a lose-typed language, as such, there's no definite data type, you can assign a numerical data to a variable and later assign string, array, object or anything into it and JavaScript doesn't complain about it, this is just my personal opinion, with JavaScript evolving fast as it is, I may have skipped something though.
Hth, cmiiw
+ 1
var is known as hoisted data-type but there is even the "let" keyword , which is non-hoisted data-type.
0
what do u mean by hoisted?