Save
GRADE 9
Computer Science 3
Introduction to Javascript
Save
Share
Learn
Content
Leaderboard
Learn
Created by
tawny khia
Visit profile
Cards (76)
In JavaScript, to declare a new variable, we can use the keywords:
var
,
let
, and
const
View source
Variable
names
are used to
identify
and
store
data in JavaScript
View source
There are different data types in JavaScript that include primitive data
types
View source
JavaScript is a
front-end
scripting
language
developed by
Netscape
for
dynamic
content
View source
JavaScript is
lightweight
, but with
limited
capabilities
View source
JavaScript can be used as an
object-oriented
language
View source
JavaScript is a
client-side
technology
View source
JavaScript is embedded in your
HTML
page and
interpreted
by the
Web browser
View source
Client-side
JavaScript is the language's most
common
format
View source
Client-side
JavaScript implies that
HTML
can incorporate
client-interacting programs
,
control the browser
, and
make the content of the HTML powerful
View source
JavaScript was initially named "
LiveScript
" and later changed to "JavaScript" to position it as the "
younger brother
" of Java
View source
JavaScript was
submitted
for
standardization
to the
ECMA world organization
View source
The
standardized language
is known as
ECMAScript
View source
JavaScript is supported by
major browsers like Firefox
,
Chrome
,
Internet
Explorer,
Safari
, and
Opera
View source
Advantages
of JavaScript
:
View source
Less contact with the server
allows for validating user feedback before sending the page to the server
View source
Immediate feedback
to visitors without the need for
page reloads
View source
Expanded
interactivity
for creating
responsive web page interfaces
View source
Greater interfacing capabilities
for
richer GUI
on
web pages
View source
Limitations
of JavaScript:
View source
JavaScript cannot
read
or
write
files
View source
JavaScript lacks support for
organizing applications
View source
JavaScript runs in a
single execution
thread
View source
How to use JavaScript in your
web page
:
View source
JavaScript codes run from inside a
web page
using the
<script
> element
View source
Scripts
can be embedded or placed in an
external file
and connected to a page like CSS
View source
External
<
script
> elements use the
src
attribute to point to a script file with a
.js
suffix
View source
Benefits of using
external style sheets
for JavaScript:
View source
Allows the
application
of the same
script
to different
websites
View source
Each external script requires an additional server
HTTP request
, which can slow down performance
View source
Variables
in JavaScript are also known as
holders
or
containers
View source
Variables allow you to position data
and refer to the data by naming the
container
View source
Variables
can be known as something that may change
View source
In JavaScript,
variables
can hold various
data values
View source
To declare a new variable in JavaScript, keywords
var
,
let
, and
const
are used
View source
Using
var
keyword
View source
var
keyword is used to
create
and
declare
a variable
View source
Variables
can be declared without initializing or initialized with a number using
var
View source
Using
let
View source
let
variables
are declared similarly to
var
but impose
scope constraints
View source
See all 76 cards