nss-evening-cohort-7 / chatty-papaphobia

chatty-papaphobia created by GitHub Classroom
1 stars 2 forks source link

Multiple Users #6

Open zoeames opened 6 years ago

zoeames commented 6 years ago
  1. Create an object in your JavaScript that holds an array of names (see example below).
  2. Next to the message input box, there should be a radio button group for each name in the list.
  3. When a user enters a message, it should be prepended with the chosen user's name, in bold text.
  4. Keep in mind that this will likely change the structure of your JSON file since the pre-loaded messages have to have this information on them.
// User object
var users = {
  names: ["Xavier", "Joanna", "Mackenzie", "Gunter", "Iveta", "Sven"];
};