+ 1

Hi. Can you help me. What's wrong there?

This Code how i try write, its wrong.

18th Mar 2023, 3:28 PM
Margarit Saroyan
Margarit Saroyan - avatar
8 Antworten
+ 2
"It's wrong " Means? Is it code coach exersize? Or lesson practices? What is the problem you are facing?
18th Mar 2023, 3:54 PM
Jayakrishna 🇮🇳
+ 2
Add full details.. Lesson number, course name, or link? .. https://www.sololearn.com/discuss/333866/?ref=app
18th Mar 2023, 4:06 PM
Jayakrishna 🇮🇳
+ 2
Or copy paste task description...
18th Mar 2023, 4:08 PM
Jayakrishna 🇮🇳
+ 1
function main() { var name = readLine(); var position = readLine(); let employees = new Map([ ["Richard", "Developer"], ["Maria", "SEO Specialist"], ["Tom", "Product Manager"], ["David", "Accountant"], ["Sophia", "HR Manager"] ]); employees.set(name, position); for (let employee of employees.entries()) { console.log(employee[0] + ":" + employee[1]); }
18th Mar 2023, 3:28 PM
Margarit Saroyan
Margarit Saroyan - avatar
+ 1
I want send screenshot of lesson How can i send?
18th Mar 2023, 4:17 PM
Margarit Saroyan
Margarit Saroyan - avatar
+ 1
You are missing the space before and after colon. Use " : " , instead of ":". console.log(employee[0] + " : " + employee[1]);
18th Mar 2023, 5:49 PM
Jayakrishna 🇮🇳
+ 1
Thanks It working 🤗
18th Mar 2023, 9:34 PM
Margarit Saroyan
Margarit Saroyan - avatar
0
Its lesson from SoloLearn
18th Mar 2023, 4:01 PM
Margarit Saroyan
Margarit Saroyan - avatar