Basic JavaScript - Store Multiple Values in one Variable using JavaScript Arrays

Tell us what’s happening:

Describe your issue in detail here.
I did the correct code, but i didn’t working the code.

Your code so far

// Only change code below this line
const myArray = ["karthii","sridevi",1,2];

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36

Challenge Information:

Basic JavaScript - Store Multiple Values in one Variable using JavaScript Arrays

1 Like

The directions say

" Modify the new array myArray so that it contains both a string and a number (in that order)."

Meaning, there should only be two items in your array (a string and a number), but you have four items in your array

2 Likes

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.