JS is a dynamically typed language. we don't need to specify data type of a variable when you declare it, and data types are converted automatically.
var post = 10;
The value can be reassigned as a string to the same variable, it will not cause any error message.
post = "blog"'
var post = 10;
The value can be reassigned as a string to the same variable, it will not cause any error message.
post = "blog"'
No comments:
Post a Comment