Menu

(Solved) : 7 Consider Following Variables Let Stringhello Int 254 Let Float254 Let Arr 1 2 3 Let Obje Q34949502 . . .

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, pa

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 Show transcribed image text

Expert Answer


Answer to 7 Consider Following Variables Let Stringhello Int 254 Let Float254 Let Arr 1 2 3 Let Obje Q34949502 . . .

OR