Difference between revisions of "JavaScript Prompt"

From Level Access Web Labs
Jump to navigation Jump to search
Line 9: Line 9:
 
   if (pizza != null) {
 
   if (pizza != null) {
 
     document.getElementById("output").innerHTML =
 
     document.getElementById("output").innerHTML =
     "Hello! You like " + pizza + "pizza";
+
     "Hello! You like " + pizza + " pizza";
 
   }
 
   }
 
}
 
}

Revision as of 23:02, 7 February 2019