Oracle Magazine, July/August 2017
Database Developer OPEN SOURCE ORACLE MAGAZINE JULY AUGUST 2017 57 function doWork1 setTimeout function console log 1 three seconds after the start doWork2 3000 function doWork2 setTimeout function console log 2 two seconds after doWork1 doWork3 2000 function doWork3 setTimeout function console log 3 one second after doWork2 1000 doWork1 Starts the function chain Save the script to a file named named functions js and run it as before The timing should work as in the previous example
You must have JavaScript enabled to view digital editions.