Possible Answers

  1. alert("your-name");
    
  2. alert("First-name\n\n\n\nLast-name");
    
    To insert three blank lines we use the newline escape character 4 times. (The last line is not blank ... it contains your last name).
  3. \a is simply displayed as the alphabet "a".
    In order to display the backslash, we have to precede it with another backslash character.
    document.write("\\a");
    
  4. alert("He said \"JavaScript's the best!\"");
    
    Note the escaped double quotes.
  5. alert("1\n\t2\n\t\t3");
    
    \t inserts a tab.