SHARE
TWEET

Untitled

a guest Nov 22nd, 2019 79 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <!DOCTYPE html>
  2. <html lang="nl">
  3. <head>
  4.  
  5.     <meta http-equiv="Content-type"
  6.         content="text/html; charset=UTF-8">
  7.     <title>LAB 04</title>
  8.  
  9. </head>
  10. <body>
  11.     <script>
  12.         var palet = new Array(
  13.             'wit', 'blauw', 'groen', 'rood', 'zwart');
  14.  
  15.         var nieuwekleur = prompt('Typ een nieuwe kleur in: ');
  16.  
  17.         var nieuwekleur1 = prompt('Typ een nieuwe kleur in: ');
  18.  
  19.         document.write('<br>3 palet is nu: ' + palet);
  20.  
  21.         palet.push('geel')
  22.         document.write('<br>6 palet is nu: ' + palet);
  23.  
  24.         palet.unshift('oranje')
  25.         document.write('<br>9 palet is nu: ' + palet);
  26.  
  27.         palet.sort();
  28.         document.write('<br>11 palet is nu: ' + palet);
  29.  
  30.         palet2 = palet.splice(0, 4);
  31.         document.write('<br>13: palet is nu: ' + palet + '<br>14: palet2 is nu:' + palet2);
  32.  
  33.         palet3 = palet.splice(0, 0);
  34.         document.write('<br>16: palet is nu: ' + palet);
  35.        
  36.        
  37.     </script>
  38. </body>
  39. </html>
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
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top