Question: explain this slide - JavaScript does not require variables to have a type before they can be used in a script - A variable in
- JavaScript does not require variables to have a type before they can be used in a script - A variable in JavaScript can contain a value of any data type, and in many situations, JavaScript automatically converts between values of different types for you - JavaScript is referred to as a loosely typed language - When a variable is declared in JavaScript, but is not given a value, it has an undefined value. - Attempting to use the value of such a variable is normally a logic - When variables are declared they are not assigned default values, unless specified otherwise by the programmer. - To indicate that a variable does not contain a value, you can assign the value nu17 to it
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
