“Under the hood”: Angry Birds Maze

Slides:



Advertisements
Similar presentations
JavaScript I. JavaScript is an object oriented programming language used to add interactivity to web pages. Different from Java, even though bears some.
Advertisements

Introducing JavaScript
JavaScript FaaDoOEngineers.com FaaDoOEngineers.com.
Java Script Session1 INTRODUCTION.
1 CSC 551: Web Programming Spring 2004 client-side programming with JavaScript  scripts vs. programs  JavaScript vs. JScript vs. VBScript  common tasks.
The Web Warrior Guide to Web Design Technologies
CS 898N – Advanced World Wide Web Technologies Lecture 14: JavaScript Chin-Chih Chang
MSc. Publishing on WWW JavaScript. What is JavaScript? A scripting language devised by Netscape Adds functionality to web pages by: Embedding code into.
Working with JavaScript. 2 Objectives Introducing JavaScript Inserting JavaScript into a Web Page File Writing Output to the Web Page Working with Variables.
Tutorial 10 Programming with JavaScript
2012 •••••••••••••••••••••••••••••••••• Summer WorkShop Mostafa Badr
Javascript and the Web Whys and Hows of Javascript.
Server vs Client-side validation. JavaScript JavaScript is an object-based language. JavaScript is based on manipulating objects by modifying an object’s.
CS346 - Javascript 1, 21 Module 1 Introduction to JavaScript CS346.
JavaScript, Fifth Edition Chapter 1 Introduction to JavaScript.
JavaScript Defined DOM (Document Object Model) General Syntax Body vs. Head Variables Math & Logic Selection Functions & Events Loops Animation Getting.
Created by, Author Name, School Name—State FLUENCY WITH INFORMATION TECNOLOGY Skills, Concepts, and Capabilities.
Generations of Programming Languages First generation  Machine Language Second Generation  Assembly Language Third Generation  Procedural language such.
Client Scripting1 Internet Systems Design. Client Scripting2 n “A scripting language is a programming language that is used to manipulate, customize,
INTRODUCTION TO JAVASCRIPT AND DOM Internet Engineering Spring 2012.
CMPS 211 JavaScript Topic 1 JavaScript Syntax. 2Outline Goals and Objectives Goals and Objectives Chapter Headlines Chapter Headlines Introduction Introduction.
1 JavaScript in Context. Server-Side Programming.
XP Tutorial 10New Perspectives on Creating Web Pages with HTML, XHTML, and XML 1 Working with JavaScript Creating a Programmable Web Page for North Pole.
TUTORIAL 10: PROGRAMMING WITH JAVASCRIPT Session 2: What is JavaScript?
Tutorial 10 Programming with JavaScript
Done by: Hanadi Muhsen1 Tutorial 1.  Learn the history of JavaScript  Create a script element  Write text to a Web page with JavaScript  Understand.
Extending HTML CPSC 120 Principles of Computer Science April 9, 2012.
IT – som værktøj Bent Thomsen Institut for Datalogi Aalborg Universitet.
XP Tutorial 10New Perspectives on HTML and XHTML, Comprehensive 1 Working with JavaScript Creating a Programmable Web Page for North Pole Novelties Tutorial.
JavaScript Syntax, how to use it in a HTML document
JavaScript - Basic Concepts Prepared and Presented by Hienvinh Nguyen, Afshin Tiraie.
JavaScript Scripting language What is Scripting ? A scripting language, script language, or extension language is a programming language.
Sahar Mosleh California State University San MarcosPage 1 JavaScript Basic.
JavaScript Defined JavaScript Basics Definitions JavaScript is an object-oriented programming language designed for the world wide web. JavaScript code.
JavaScript Introduction.  JavaScript is a scripting language  A scripting language is a lightweight programming language  A JavaScript can be inserted.
4. Javascript M. Udin Harun Al Rasyid, S.Kom, Ph.D Lab Jaringan Komputer (C-307) Desain.
JavaScript Defined DOM (Document Object Model) General Syntax Body vs. Head Variables Math & Logic Selection Functions & Events Loops Animation Getting.
JavaScript 101 Introduction to Programming. Topics What is programming? The common elements found in most programming languages Introduction to JavaScript.
1 Lesson 6 Introducing JavaScript HTML and JavaScript BASICS, 4 th Edition.
Javascript Basic Concepts Presentation By: Er. Sunny Chanday Lecturer CSE/IT RBIENT.
JavaScript 101 Lesson 6: Introduction to Functions.
XP Tutorial 10New Perspectives on HTML, XHTML, and DHTML, Comprehensive 1 Working with JavaScript Creating a Programmable Web Page for North Pole Novelties.
1 Agenda  Unit 7: Introduction to Programming Using JavaScript T. Jumana Abu Shmais – AOU - Riyadh.
JavaScript: A short introduction Joseph Lee Created by Joseph Lee.
REEM ALMOTIRI Information Technology Department Majmaah University.
Javascript Javascript The JavaScript Programming Language – Scripting Languages Executed by an interpreter contained within.
Module 1 Introduction to JavaScript
Chapter 6 JavaScript: Introduction to Scripting
Tutorial 10 Programming with JavaScript
Web Development & Design Foundations with HTML5
JavaScript is a programming language designed for Web pages.
Web Development & Design Foundations with HTML5 7th Edition
4. Javascript Pemrograman Web I Program Studi Teknik Informatika
JavaScript.
14 A Brief Look at JavaScript and jQuery.
Chapter 10 Programming Fundamentals with JavaScript
WEB PROGRAMMING JavaScript.
PHP.
T. Jumana Abu Shmais – AOU - Riyadh
JavaScript What is JavaScript? What can JavaScript do?
Introduction to JavaScript
Tutorial 10 Programming with JavaScript
JavaScript What is JavaScript? What can JavaScript do?
“Under the hood”: Angry Birds Maze
Tutorial 10: Programming with javascript
JavaScript Basics What is JavaScript?
Introducing JavaScript
JavaScript is a scripting language designed for Web pages by Netscape.
An Introduction to JavaScript
Javascript Chapter 19 and 20 5/3/2019.
Presentation transcript:

“Under the hood”: Angry Birds Maze LESSON 2: Java Script “Under the hood”: Angry Birds Maze

History First web scripting language Developed by Netscape and Sun Initiated by Netscape and called LiveScript In parallel with this, Sun was developing Java

Why Use JavaScript? JavaScript enhances Web pages with dynamic and interactive features. JavaScript runs in client software JavaScript 1.3 works with version 4.0 browsers

What can JavaScript Do? JavaScript gives HTML desighners a programming tool JavaScript can react to events Validate data It can be used to detect the visitor’s browser Create cookies Read/write/modify HTML elements

JavaScript Terminology JavaScript programming uses specialized terminology Understanding JavaScript terms is fundamental to understanding the script Objects, Properties, Methods, Events, Functions, Values, Variables, Expressions, Operators

Objects Object refers to windows, documents, images, tables, forms, buttons, or links, etc. Objects should be named. Objects have properties that act as modifiers

Properties Properties are object attributes. Object properties are defined by using the object’s name, a period, and the property name. e.g., background color is expressed by: document.bgcolor. document is the object bgcolor is the property

Methods Methods are actions applied to particular objects. Methods are what objects can do. e.g., document.write (“Hello World”) document is the object write is the method

Functions Functions are named statements that performs tasks. e.g., function doWhatever () {statement here} The curly braces contain the statements of the function. JavaScript has built-in functions, and you can write your own.

Values Values are bits of information. Values types and some examples include: Number: 1, 2, 3, etc. String: characters enclosed in quotes. Boolean: true or false. Object: image, form Function: validate, doWhatever

Variables Variables contain values and use the equal sign to specify their value. Variables are created by declaration using the var command with or without an initial value state. e.g., var month; e.g., var month = April;

JavaScript terms Binary Code: Compiler: Condition: Interpretation: Machine Readable Code (After JavaScript code has been translated by interpretation, it becomes binary code Compiler: Highly specialized piece of software that takes a programming language that humans can understand and converts it into language computers can understand Condition: A conditional statement tells the browser IF this condition is met, perform this function; if not (ELSE) perform a different function Interpretation: Describes the line-by line conversion process that occurs automatically at run time or when the Web browser launches the JavaScript commands that are embedded in the Web document

Vocabulary (Cont) Keywords: Methods: Objects: Word recognized by the programming language as part of its language (IF, ELSE, RETURN) Methods: Specialized functions within the object, and they call upon the services of the object, a method is invoked after you type the name of the object, followed by a period Objects: Invisible entities that have a defined set of capabilities Operators: Placed between two tokens in a conditional statement

Vocabulary (continued) Parameter List A list of information that provides a programming method what it needs to perform a specific function correctly. Programming Language A language that has to be converted from a human-readable format into machine-reada ble format. This process is accomplished by using a compiler to complete the operation. Scripting Language Language that does not have to be run through a compiler for it to be understood. Web browsers will take the human-readable format and convert it into machine-readable format “on the fly”. <SCRIPT> and </SCRIPT> tags The beginning and end tags that are necessary in a Web document for a JavaScript statement to be executed. All JavaScript code must be placed within the beginning and ending tag.

Vocabulary (continued) Status Line Located at the bottom of the window. Displays various messages and is a way in which a JavaScript Web page can communicate information to the user. Token Either a variable name or a literal constant, followed by a relational operatior. A JavaScript condition will always consist of two tokens. Web Browser Often referred to as a Web client because it allows users to interface with different operating systems and view information on the World Wide Web. It allows Web page developers to have JavaScript compiled and interpreted “on the fly.”

JavaScript “Under the Hood”

Assignment Write Name and Class Color on a blank piece of paper List the Four Commands introduced through video clips in the “Angry Bird Maze” REPEAT (Puzzle 6) REPEAT UNTIL (Puzzle 10) IF (Puzzle 14) IF/ELSE (Puzzle 18 Write a brief description of each command and when/why/how it is used (review video clips if necessary)