Popsicle code coach js | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Popsicle code coach js

Hi all, I just started learning js. Tried the challenges in code coach but it doesn't have the js option. So I posted as web in in 'code' tab. Is my code ok? let siblings = prompt("Please enter the number of siblings:"); let popsicles = prompt("Please enter the number of popsicles:"); if ((popsicles / siblings)%2==0) { console.log("give away"); } else { console.log("eat them yourself"); }

28th Feb 2020, 8:49 AM
Christopher Ho
Christopher Ho - avatar
2 Answers
0
I think it’s ok if you write it in js part of web.
28th Feb 2020, 3:27 PM
Mahade hasan Sabbir
0
thanks. but code coach in solo learn doesnt have the web option either.
29th Feb 2020, 4:14 AM
Christopher Ho
Christopher Ho - avatar