Possible Answers

  1. Welcome to http://www.webdevelopersnotes.com
    (The variable lies outside the parenthesis, hence its value is displayed.)
  2. My favorite movie is my_movie
    (JavaScript cannot interprets my_movie as a variable since its enclosed in the quotes.
  3. The sum total is sum_total
    (Variable placed inside quotes. JavaScript makes no discrimination between a string data or numeric data when displaying variable values)
  4. 
    function msg(name)
       {
       alert("Welcome " + your_name_here);
       }
    
    // Calling the function
    
    msg("your_name_here");
    
  5. function msg(name)
       {
       window.defaultStatus("Welcome " + your_name_here);
       }
    
    // Calling the function
    
    msg("your_name_here");
    
    
    You might ask why we use defaultStatus instead of simply window.status. The reason is that window.status is associated only with event handlers and cannot recognize a variable even if its outside the quotes.