irmantas_radavicius

Untitled

Oct 17th, 2021
900
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. let x = 1;
  3. while(x <= 10){
  4.     console.log(x);
  5.     x = x + 1;
  6. }
  7.  
  8.  
  9. let day = [
  10.     ["Monday", 1, "Pirmadienis",],
  11.     ["Tuesday", 2, "Antradienis",],
  12.     ["Wednesday", 3, "Trečiadienis",],
  13.     ["Thursday", 4, "Ketvirtadienis",],
  14.     ["Friday", 5, "Penktadienis",],
  15.     ["Saturday", 6, "Šeštadienis",],
  16.     ["Sunday", 7, "Sekmadienis",],
  17. ];
  18.  
  19. console.log(day);
  20. console.log(day.toString());
  21. console.log(day.length);
  22. console.log(day[0]);
  23. console.log(day[day.length-1]);
  24.  
  25. let i = 0;
  26. while(i < day.length){
  27.     console.log("Today is " + day[i][0] + " which is " + day[i][1] + " day of the week, in Lithuanian \"" + day[i][2] + "\""); 
  28.     i = i + 1;
  29. }
  30.  
  31.  
RAW Paste Data