Write a function that returns names and roles in javaScript. Please explain ?

Attachment image

2 Answers

  • Anonymous
    1 month ago
    Favorite Answer

    Complete the namesAndRoles function returning the property of name and role from users array in a single string format.  All properties are labelled.

    Name:Homer, Role:Clerk, ...

    users.map(function(u) { return <label>:u.<property>; });

  • Lv 7
    1 month ago

    sounds pretty self-explanatory. what part did you not understand?

    perhaps you should consult your teacher. that IS what you pay him for...

Still have questions? Get your answers by asking now.