You are on page 1of 8

CS 341: Web Technologies

Web Content Behaviour:- JavaScript

David Ebo Adjepon-Yamoah & FI: Agatha Maison

Ashesi University College


dadjepon@ashesi.edu.gh

September 28, 2017

David Ebo Adjepon-Yamoah & FI: Agatha Maison (AUC) Web Technologies September 28, 2017 1/8
Overview

1 ACTIVITY

2 JavaScript Crash Course


Introduction to JavaScript

3 W3Schools.com To The Rescue


W3Schools.com To The Rescue

David Ebo Adjepon-Yamoah & FI: Agatha Maison (AUC) Web Technologies September 28, 2017 2/8
CS 341 Lectures + LABS
ACTIVITY

ACTIVITY:- Thanks & Response

David Ebo Adjepon-Yamoah & FI: Agatha Maison (AUC) Web Technologies September 28, 2017 3/8
JavaScript Crash Course
JavaScript

What is JavaScript?
It is designed to add interactivity to HTML pages.
It is a scripting language (a lightweight programming language).
It is an interpreted language (i.e. it executes without preliminary
compilation).
Usually embedded directly into HTML pages.
And, Java and JavaScript are different.

David Ebo Adjepon-Yamoah & FI: Agatha Maison (AUC) Web Technologies September 28, 2017 4/8
JavaScript Crash Course
JavaScript

The HTML < script > tag is used to insert a JavaScript into an
HTML page.
Ending statements with a semicolon?
Optional; required when you want to put multiple statements on a
single line.
JavaScript can be inserted within the head, the body, or use external
JavaScript file.

David Ebo Adjepon-Yamoah & FI: Agatha Maison (AUC) Web Technologies September 28, 2017 5/8
JavaScript Crash Course
JavaScript Basics

Variables (var)
If - Else
Switch
Operators
Popup Boxes (i.e. alert, confirm, prompt)
Functions
Loops (for, while)
Events
Try - Catch & Throw & onerror (Error Handling)...

David Ebo Adjepon-Yamoah & FI: Agatha Maison (AUC) Web Technologies September 28, 2017 6/8
W3Schools.com To The Rescue
Demos

DEMOS!

David Ebo Adjepon-Yamoah & FI: Agatha Maison (AUC) Web Technologies September 28, 2017 7/8
References

Robin Nixon
Learning PHP, MySQL, JavaScript, CSS, HTML5
O’Rielly Publishers (Third Edition)
W3Schools Website on JavaScript
www.w3schools.com/js (JavaScript)

David Ebo Adjepon-Yamoah & FI: Agatha Maison (AUC) Web Technologies September 28, 2017 8/8

You might also like