click the button to show the text


click the button to change the text

output

click the button to show the date

output


click the button to on/off the light


click the button to change the style

Lorem ipsum dolor sit amet.


click the button to show/hide the content

Lorem ipsum dolor sit, amet.


click the button to show the result

result


click the button to show the result

show result


what can javascript do?

JavaScript can change the style of an HTML element.

A Paragraph.

click the button to show the result

result


click the button to show the result

result


click the button to show the result

result


click the button to show the result

result


answer the question

answer the question

answer the question

answer the question

answer the question

answer the question

click the button to show the result

result


click the button to show the result

result


click the button to show the result is not operator

result


click the button show the result variable value and datatype check

result


the result is not same variable value and datatype check

result


the result is not same variable value and datatype check

result


the result is not same variable datatype and datatype check

result


the result is not same variable value and datatype check

result


the result is not same variable value and datatype check

result


the result is not same variable value and datatype check

result


the result is not same variable value and datatype check

result


the result is not same variable value and datatype check

result


For loop button press

result


For loop button press

result


what can javascript do?

JavaScript can change the style of color


In HTML, JavaScript statements are executed by the browser.


A JavaScript program is a list of statements to be executed by a computer.



JavaScript Variables

Create a variable, assign a value to it, and display it:


JavaScript Variables

You can declare many variables in one statement.


JavaScript Variables

A variable without a value has the value of:

JavaScript Arithmetic

The += Operator

JavaScript operators

The -= Operator

JavaScript operators

The *= Operator

JavaScript operators

The /= Operator

JavaScript Operators

The typeof Operator

The typeof operator returns the type of a variable or an expression.

JavaScript Objects

Creating an Object

JavaScript Math.PI

Math.PI returns the ratio of a circle's circumference to its diameter:

JavaScript Math.pow()

Math.pow(x,y) returns the value of x to the power of y:

JavaScript Math.abs()

Math.abs(x) returns the absolute (positive) value of x:

JavaScript Math.min()

Math.min() returns the lowest value in a list of arguments: