Ask coding questions

← Back to all posts
Why is this wrong ?
bananakinq (3)

// Exercise Two: Create a variable called 'cars',
// assign it to an array containing the names of three cars.
let cars = [Tesla, Nissan, Toyota];


Mosrod (440)

Please edit your post to include a meaningful title that describes your issue.

mwilki7 (1079)

put each element in quotes

Edgod (80)

@bananakinq When you forget to put quotes around each element, Javascript will treat each element as a variable instead of a string.