+ 1
Hi. Can you help me. What's wrong there?
This Code how i try write, its wrong.
8 Antworten
+ 2
"It's wrong " Means?
Is it code coach exersize? Or lesson practices? What is the problem you are facing?
+ 2
Add full details..
Lesson number, course name, or link? ..
https://www.sololearn.com/discuss/333866/?ref=app
+ 2
Or copy paste task description...
+ 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]);
}
+ 1
I want send screenshot of lesson
How can i send?
+ 1
You are missing the space before and after colon. Use " : " , instead of ":".
console.log(employee[0] + " : " + employee[1]);
+ 1
Thanks
It working 🤗
0
Its lesson from SoloLearn