stigmat82

Untitled

Apr 8th, 2021
533
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. let ar8 = [];
  2.  
  3. function f8() {
  4.   let out = document.querySelector(".out-8");
  5.   let out2 = document.querySelector(".out-8-1");
  6.   let str = "";
  7.  
  8.   ar8[3] = 3.14;
  9.   ar8[4] = 17;
  10.   ar8[6] = 5;
  11.  
  12.   for (i = 0; i < ar8.length; i++) {
  13.     str += `${ar8[i]}-`;
  14.   }
  15.   out.innerHTML = str;
  16.   out2.innerHTML = ar8.length;
  17. }
  18.  
  19. document.querySelector(".b-8").onclick = f8;
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×