SHARE
TWEET

Untitled

a guest May 21st, 2019 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var randomArray = [];
  2. for (var i = 0; i < 15; i++) {
  3.   appendItem(randomArray, randomNumber(0,10));
  4. }
  5.  
  6. console.log("Original: " + randomArray);
  7.  
  8. for (var i = 0; i < randomArray.length; i++) {
  9.   if (randomArray [i] == 5) {
  10.     console.log("true");
  11.   } else {
  12.     console.log("false");
  13.   }
  14.   // Your code goes here
  15. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top