CodeChallenge icon indicating copy to clipboard operation
CodeChallenge copied to clipboard

Error in example given

Open traez opened this issue 5 years ago • 3 comments

In (Basic JavaScript: Store Multiple Values in one Variable using JavaScript Arrays)

Example given is var sandwich = ["peanut butter", "jelly", "bread"].

Whereas solution to challenge is var sandwich = ["peanut butter", "jelly", "23"];

Shouldn't a semicolon end the variable in the example and not a fullstop?

traez avatar Apr 25 '20 07:04 traez

right

RiyoZaki1 avatar Feb 02 '22 15:02 RiyoZaki1

It must be var sandwich =["peanut butter","jelly",23]; because 23 is not a string it's a bumber

ivanwalker524 avatar Feb 02 '22 17:02 ivanwalker524

Var sandwich =["peanut butter", "jelly", 23];

On Wed, Feb 2, 2022, 18:45 Riyo Zaki @.***> wrote:

right

— Reply to this email directly, view it on GitHub https://github.com/EQuimper/CodeChallenge/issues/4#issuecomment-1028075569, or unsubscribe https://github.com/notifications/unsubscribe-auth/AUJP6T5BLRPMD2HV6YM26VTUZFGRRANCNFSM4MQUM6NA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

ivanwalker524 avatar Feb 02 '22 17:02 ivanwalker524