Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 booleanStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started