Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var i = 0
- function print() {
- i++;
- if (i <= 3) {
- console.log(new Date(),'Hello world')
- setTimeout(print, 2000)
- }
- else {
- console.log(new Date(),'OK Done...')
- }
- }
- print()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement