+ 11

I need a little help here please!, Im stuck

I need a little help in js lesson, I'm stuck on it, check the images links to view where I need help, if you can fix the bug, please let me know Your help is appreciated! Thank you!

16th Aug 2023, 1:45 PM
Goodluck Michael
Goodluck Michael - avatar
17 Réponses
+ 3
Give space between dollar symbols and colon
17th Aug 2023, 1:10 AM
Santosh Bobade
Santosh Bobade - avatar
+ 5
Goodluck Michael The problem is likely that the output expects a single whitespace after commas and colons. Try that.
16th Aug 2023, 2:32 PM
Marcos Chamosa Rodríguez
Marcos Chamosa Rodríguez - avatar
+ 4
Santosh Bobade Yayyyy 😁, thanks It's finally working, thank you! 👇 https://photos.app.goo.gl/iq6R9xtGh6sK7Wje6 Thanks everyone Marcos Chamosa Rodríguez, Sakshi
17th Aug 2023, 12:33 PM
Goodluck Michael
Goodluck Michael - avatar
16th Aug 2023, 1:52 PM
Goodluck Michael
Goodluck Michael - avatar
+ 3
The error is telling you what the problem is. String in the output must match exactly, and that means also paying attention to the letter casing.
16th Aug 2023, 2:01 PM
Marcos Chamosa Rodríguez
Marcos Chamosa Rodríguez - avatar
+ 3
Marcos Chamosa Rodríguez Yeah, I know that, I've tried several times, but I just can't fix the bug Please can you send a text of how the bugless code should look like?
16th Aug 2023, 2:05 PM
Goodluck Michael
Goodluck Michael - avatar
+ 3
Your code is not using the read line function at all. This program is input based. You have to be prompted to write out a country and a capital. Don't just hardcode two values to use in the code. Call that function twice as the first picture is showing you, and the SoloLearn interpreter will ask you to input the country and the capital, each in a separate line.
16th Aug 2023, 2:08 PM
Marcos Chamosa Rodríguez
Marcos Chamosa Rodríguez - avatar
+ 3
16th Aug 2023, 2:26 PM
Goodluck Michael
Goodluck Michael - avatar
+ 3
Goodluck Michael Save the code in playground then share it, then we can help you because maybe some bug or maybe something mistake in your code that's why firstly share the code instead of post.
16th Aug 2023, 2:50 PM
Sakshi [Offline 🙃]
Sakshi [Offline 🙃] - avatar
+ 3
Sakshi, it's a lesson on JavaScript, a code coach, and I've been stuck on it for quite some time now!
16th Aug 2023, 4:24 PM
Goodluck Michael
Goodluck Michael - avatar
+ 3
Marcos Chamosa Rodríguez it isn't working yet! It's frustrating! Thanks for your help:D
16th Aug 2023, 4:40 PM
Goodluck Michael
Goodluck Michael - avatar
+ 3
Goodluck Michael Very good bro 👍
17th Aug 2023, 12:45 PM
Sakshi [Offline 🙃]
Sakshi [Offline 🙃] - avatar
+ 2
In the images
16th Aug 2023, 1:46 PM
Goodluck Michael
Goodluck Michael - avatar
16th Aug 2023, 1:49 PM
Goodluck Michael
Goodluck Michael - avatar
+ 2
And one more space between comma and capital
17th Aug 2023, 1:12 AM
Santosh Bobade
Santosh Bobade - avatar
+ 1
Glad you got it working :)
16th Aug 2023, 4:38 PM
Marcos Chamosa Rodríguez
Marcos Chamosa Rodríguez - avatar
+ 1
👍👍 keep going
17th Aug 2023, 12:46 PM
Santosh Bobade
Santosh Bobade - avatar