Group 1 - Overview of JavaScript
Group 1 - Overview of JavaScript
Group 1 - Overview of JavaScript
of
JavaScript
Group 1 Members
Vincent Rafael
Onin Binuya
M.Manio
01 03
Introduction to Variables,Data types and
JavaScript Programming operators in JavaScript
03
Writing basic
JavaScript Code
01
Introduction
What is JavaScript?
JavaScript is a lightweight,
cross-platform, dynamically
typed programming language
used for web development for
both client-side and server-side
development
It contains a standard library of
objects, such as array, date, and
math. Additionally, it also has a
core set of language elements
like operators, control structures,
and statements.
This programming language is both
compiled and interpreted, with
newer versions incorporating a
just-in-time (JIT) compiler to
optimize execution and display
results more quickly by generating
bytecode.
JavaScript on the
Client-side and
Server-side
Client-side: JavaScript can supply objects that
control a browser and its Document Object Model
(DOM). Client-side extensions using JavaScript can
allow an application to place elements on an
HTML form and respond to user events such as
mouse clicks, form input, and page navigation.
Several useful libraries for the client side are
AngularJS, ReactJS, and VueJS.
Server-side: JavaScript can supply objects relevant
to running it on a server, where server-side
extensions allow for communication with a
database, continuity of information, and file
manipulations. The most popular framework for
server-side JavaScript is node.js. With node.js,
JavaScript developers can build high-performance
network applications that can handle a large
number of concurrent connections with minimal
overhead.
DID YOU KNOW?
<script>
// JavaScript Code
</script>
Example of Internal JavaScript:
Example of External JavaScript:
Appication of JavaScript
Web
Development Games
Web
Smartwatch
Applications
Server Art
Applications
Mobile Internet
Of
Applications Things
Limitations of JavaScript
Security Complexity
02
Variables, data types and Operators
What is Variable?
Variable are
containers for storing
data.
How Do We Declare Variables?
Var
var x = 5;
let
Variable let x = 5;
Declaration Const
Const price1 = 5;
None
x = 5;
What is Operators?
Operators are equivalent to the
process of adding, subtracting,
multiplying and etc. The following
are the operators that we use in
Javascript
Arithmetic Operators
Assignment Operators
Comparison Operators
EXERCISE
<!DOCTYPE html>
<html>
<body>
<script>
let text1 = “A”;
let text2 =“B”;
let result = text1 < text2;
document.getElementById(“demo”).innerHTML =
“ Is A les than B? ” + result;
</script>
</body>
</html>
Question
Is A less than B? True
I
Logical Operators
Type Operators
Bitwise Operators
Data Types
JavaScript has 8 Datatypes
String Number Bigint Boolean
Let weight = 7.5; let x =
let color = "Yellow"; BigInt("12345678901234567 let x= true;
Let y = 123e5; 8901234567890");