Question: Code should be in JAVASCRIPT :- 7. Consider the following variables: let stringHello', int -254; let float25.4; let arr- [1, 2, 3]; let object-course JS',
Code should be in JAVASCRIPT :-

7. Consider the following variables: let stringHello', int -254; let float25.4; let arr- [1, 2, 3]; let object-course JS', part: 1); let funcfunction ()(return;}; let nullValue null; let undefinedValue let booleantrue; Add these variables to an array named variables then loop through the array using for-of loop to display the value of each variable and its data type. The output should be as follows: Hello is string 254 is number 25.4 is number 1,2,3 is object [object Object] is object function freturn;) is function null is object undefined is undefined true is boolean
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
