Guest User

Untitled

a guest
Aug 20th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. const logAll = (array) => {
  2. for(let i = 0; i < array.length; i++){
  3. console.log(array[i]);
  4. }
  5. }
  6.  
  7. logAll([1, 2, 3]);
  8. logAll([1, 2, 3, 4, 5, 6]);
  9. // runtime increase proportionally => O (n)
Add Comment
Please, Sign In to add comment