- 1
iterator undefined?
returns new Map iterator undefined 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"] ["Bob", "Developer"] ]); //add the new pair to the map employees.set(`name`,`position`) for (var i of employees.entries()){ //your code for the output console.log(i [0] + ":" + i [1]) } }
4 Answers
+ 4
I think you missed a comma after Sophia's entry
In employees.set() are some strange quotation marks
+ 2
Sure?
I added a comma after Sophia's entry:
https://code.sololearn.com/W3jViq4r8b36/?ref=app
0
those parts are correct,
any other suggestions?
0
Thank you Lisa!
i see it now!đ
The key and value and the spacing " : " completed the code