Learning JavaScript Tanagi Team SEO marketing brand logo

What Can JavaScript Do?

JavaScript can change HTML content.

What Can JavaScript Do?

JavaScript can change HTML attribute values.

In this case JavaScript changes the value of the src (source) attribute of an image.

JavaScript getFullYear()

The getFullYear() method returns the full year of a date:

Statement 1 is executed (one time) before the execution of the code block.

Statement 2 defines the condition for executing the code block.

Statement 3 is executed (every time) after the code block has been executed.

Example

JavaScript Loops

JavaScript Loops

My First Page Debugging

Activate debugging in your browser (Chrome, IE, Firefox) with F12, and select “Console” in the debugger menu.