JavaScript Data Types
JavaScript is a dynamically typed language, which means that it assigns the type based upon how it is used. The data type can change as values, and their types, change as the program executes. Without care of the data types, this can cause errors to occur. Consider the following code: We can test this theory…