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]

Related Posts

Time Converter Using JavaScript | Simple JS Projects for Beginners

Time Converter Today, let’s build a Time Converter by applying the basic java script concepts. Refer to the below image. Instructions: The HTML input element for entering the number…

JS Program to log the value located at Given Index

Access the values of an array Given an array. myArray = [25, false, “green”, “apple”]Write a Js program to log the value located at the given index….

Traffic Signal Light using Javascript | JS Projects for Beginners with Code

Traffic Signal Light Today, let’s build a Traffic Light by applying the basic Javascript concepts. Refer to the below image. Instructions: The HTML button elements should have the ids stopButton, readyButton,…

Build Simple Color Picker using JavaScript | JS Projects with Code

let’s build a Color Picker by applying the basic JavaScript concepts. Refer to the below image. Instructions: The HTML container element that is wrapping all the HTML…

Leave a Reply

Your email address will not be published.