What is a simple example of an asynchronous JavaScript function?
Asynchronous JavaScript function
222
19-Jul-2021
Updated on 19-Jul-2021
Ethan Karla
20-Jul-2021<!DOCTYPE html> <html lang='en' xmlns='http://www.w3.org/1999/xhtml'> <head> <meta charset='utf-8' /> <title>Asynchronous JavaScript </title> <script> window.setTimeout(function () { console.log('Hello World'); }, 1000); document.write('Hello'); </script> </head> <body align='center'> <h1>Asynchronous JavaScript</h1> </body> </html>Hope this information has cleared your confusion.
Happy Coding!