JavaScript Program to Create & Log an Array

 

Create & Log an Array

Write a JS program to log an array with the given values.
‘Orange’, 25, 100, true, 33.58.

Output
The output should be a single line containing an array with the above values in the same order.

Code:

let my_array=["Orange",25,100,true,33.58];
console.log(my_array);

Output
[Orange”, 25, 100, true, 33.58]

Comments

Popular posts from this blog

CODING ASSIGNMENT 4

CODING PRACTICE 11 Music Page

CCBP Static Website Coding Assignment 2 Solution | Yoga Page