Javascript was released by a popular browser of the time Netscapecommunicator
Uses curly brackets to contain the code belonging to functions or “if… then” statements
Javascript comes with very few modules
Function to say Hello World in console log
function helloWorld() {
console.log("Hello World");
}
helloWorld();
JavaScript is executed by the client web browser
As Javascript is executed on the browser the bandiwdth required and server processing is less
about:blank is a blank page within your browser
Variables declared by varkeyword are scoped to the immediate function body (hence the function scope) while letvariables are scoped to the immediateenclosingblock denoted by { }
Instead of colon what is used to show the beginning of a function in javascript?
curly bracket
After each line of code in javascript, except ones with curly brackets what should be at the end of it?
Semi colon
JavaScript functions can be stored in an external file rather than added directly to the HTML
Why are external javascript files used?
As they can be used across multiple sites
Events occur when the user or browser manipulates the page
The <button> tag can have an onclick event set
The HTML below creates a button that calls functionFinish on the webpage using the <button> and </button> tags.