You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

exer_8_function1.js 359B

123456789101112131415161718192021222324
  1. /* declaratie variablen */
  2. 'use strict'
  3. /* function */
  4. function printNames(names) {
  5. for(let i = 0; i < names.lenght; i++) {
  6. console.log(names[i]);
  7. }
  8. }
  9. /* declaratie variabelen */
  10. let names1 = ['John', 'Jane'];
  11. let names2 = ['Alice', 'Bob'];
  12. /* output */
  13. printNames(names1);
  14. console.log('---');
  15. printNames(names2);