Search notes:

JavaScript statements: for (…; …; …) { }

#!/usr/bin/env js52

var i;
for (i=1; i<=10; i++) {
  print(i + ' squared is ' + i*i);
}
// 1 squared is 1
// 2 squared is 4
// 3 squared is 9
// 4 squared is 16
// 5 squared is 25
// 6 squared is 36
// 7 squared is 49
// 8 squared is 64
// 9 squared is 81
// 10 squared is 100
Github repository about-javascript, path: /statements/for/loop.js

See also

for
Javacript statements

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/developm...', 1743217347, '13.58.254.98', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/languages/JavaScript/language/statements/for/loop(56): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78