Skip to content

Latest commit

 

History

History
25 lines (21 loc) · 439 Bytes

09_synchronous_javascript_execution.md

File metadata and controls

25 lines (21 loc) · 439 Bytes

Synchronous JavaScript Execution

console.log('wash clothes!')
console.log('clean dishes!')
console.log('clean home!')

Synchronous JavaScript Execution without delay

function washClothes() {
    console.log('washing clothes - DONE')
}

function cleanDishes() {
    console.log('cleaning dishes - DONE')
}

function cleanHome() {
    console.log('home cleaning - DONE')
}

washClothes()
cleanDishes()
cleanHome()