Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function buildEvenIntArray(max) {
- var tab = []; //creation du tableau
- for (var i = 0; i < max; i += 2) {
- console.log(i);
- tab.push(i);
- }
- return tab;
- console.log(tab);
- }
- buildEvenIntArray(50)
- function displayArray(table){
- console.log(tab);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement