Advertisement
Guest User

Untitled

a guest
Sep 29th, 2014
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function warningMaker( obstacle ){
  2.   return function ( number, location ) {
  3.     alert("Beware! There have been " +
  4.           obstacle +
  5.           " sightings in the Cove today!\n" +
  6.           number +
  7.           " " +
  8.           obstacle +
  9.           "(s) spotted at the " +
  10.           location +
  11.           "!"
  12.          );
  13.   };
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement