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 :-

Code should be in JAVASCRIPT :- 7. Consider the following variables: let

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!