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

Tell us what’s happening:
Describe your issue in detail here.

Your code so far

// Only change code below this line
let myArray = ["word one", "123"];

It keeps saying to change the second string in the array to a number but it is a number.
Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36

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

Link to the challenge:

Oh I figured it out. Numerical strings do not need quotations

This is a case where English is ambiguous.

"123" // this is a string (of numbers)
123   // this is a number

console.log(typeof "123") // string
console.log(typeof 123)   // number

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