0% found this document useful (0 votes)
3 views2 pages

JavaScript Speed Optimization Tips

This document provides an overview of JavaScript including how to change HTML content using JavaScript, best practices for script placement, different types of JavaScript output, arithmetic operators, and links to additional JavaScript tutorials and references. It discusses using innerHTML to modify HTML elements, placing scripts at the bottom of the page for faster loading, using window.alert(), console.log(), and other output methods, and arithmetic operators like addition, subtraction, and modulus.

Uploaded by

TudoseVlad
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views2 pages

JavaScript Speed Optimization Tips

This document provides an overview of JavaScript including how to change HTML content using JavaScript, best practices for script placement, different types of JavaScript output, arithmetic operators, and links to additional JavaScript tutorials and references. It discusses using innerHTML to modify HTML elements, placing scripts at the bottom of the page for faster loading, using window.alert(), console.log(), and other output methods, and arithmetic operators like addition, subtraction, and modulus.

Uploaded by

TudoseVlad
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd

[Link]

asp
Can Change HTML Content
[Link]("demo").innerHTML = "Hello JavaScript";
[Link]('demo').innerHTML = 'Hello JavaScript';
Where To
Placing scripts at the bottom of the <body> element improves the display speed, because script
compilation slows down the display.
JavaScript Output
Using [Link]() after an HTML document is loaded, will delete all existing HTML:
[Link]()
[Link]()

Fixed values are called literals. Variable values are called variables.

JavaScript Arithmetic Operators

Arithmetic operators are used to perform arithmetic on numbers:

Description
Addition
Subtraction
Multiplication
Exponentiation (ES2016)
Division
Modulus (Division Remainder)
Increment
Decrement

[Link]
[Link]

Operator
+
-
*
**
/
%
++
--

You might also like