ICT 8 - Java Language
ICT 8 - Java Language
San Pablo
LICEO DE CAVINTI
ICT 8
JAVAScript
JavaScript or sometimes
called “JS” is a scripting
language that makes
the web pages
interactive.
It makes the web pages
more dynamic by
allowing users to
interact with webpages,
click on elements, and
change the pages.
JavaScript was created
by Brendan Eich in
1995 during his time at
Netscape
Communications, which
is now Mozilla.
Originally, it was named
Mocha-a name chosen
by Marc Andreessen,
founder of Netscape
In September 1995, the name was changed to LiveScript, then
in December of the same year, upon receiving a trademark
license from the Sun, the name Java Script was adopted.
Sun began the development of Java in 1990 in attempt to write
a language for “smart appliances”. This approach floundered
and in 1994, Sun regrouped and set their sights on the web as
the delivery platform if choice.
Getting started with a
JavaScript File
Similar to HTML and CSS, JavaScript
does not require any special program
or tools.
The Notepad is one of the simplest
text editors already available in the
computer but you can also try other
text editors on the Internet
Creating JavaScript
In a Notepad
Classifications of JavaScript
codes
Internal JavaScript
A JavaScript syntax is placed anywhere within
the webpage between the HTML tags. Most
often, it is paced in the <body> and <head>
section of HTML tags.
The syntax is inserted between the <script>
and </script> tags. This script loads faster
than pages that must reference external code.
External JavaScript
A JavaScript syntax is placed in a file separate
from the HTML code. It is saved with a “.js”
file extension.
The webpage
must have the
following HTML
referencing the
script:
JavaScript Structure
The structure of a JavaScript is composed of a
program, syntax, and statement. A computer
has a list of instructions to be performed by
the computer.
STATEMENTS SYNTAX