Copyright By Free for non-commercial use. Editable provided that the copyright claim is included.

Slides:



Advertisements
Similar presentations
Lecture 15.1 Static Methods and Variables. © 2006 Pearson Addison-Wesley. All rights reserved Static Methods In Java it is possible to declare.
Advertisements

By: Daniel Henneberger.  Introduction  Data Types  Flow Control  Inheritance/Built-in Functions  User defined types, Generics  Arrays  Function.
Session 8 JavaScript/Jscript: Objects Matakuliah: M0114/Web Based Programming Tahun: 2005 Versi: 5.
Candy Project Instructions – Save the slide presentation to your student folder as “Candy Project.” – Complete the presentation with your group (information.
Advanced JS The World's Most Misunderstood Programming Language ) Douglas Crockford( Shimon Dahan
Outline IS400: Development of Business Applications on the Internet Fall 2004 Instructor: Dr. Boris Jukic JavaScript: Introduction to Scripting.
Chapter 14: Overloading and Templates C++ Programming: Program Design Including Data Structures, Fifth Edition.
25-Jun-15 JavaScript Language Fundamentals II. 2 Exception handling, I Exception handling in JavaScript is almost the same as in Java throw expression.
Chapter 15: Operator Overloading
Taking JavaScript Seriously IS NOT THE WORST IDEA.
1 Interface Types & Polymorphism & introduction to graphics programming in Java.
JavaScript: Control Structures September 27, 2005 Slides modified from Internet & World Wide Web: How to Program (3rd) edition. By Deitel, Deitel,
C++ Programming: Program Design Including Data Structures, Fourth Edition Chapter 14: Overloading and Templates.
Chapter 12: Adding Functionality to Your Classes.
C++ Programming: From Problem Analysis to Program Design, Fourth Edition Chapter 15: Overloading and Templates.
Liang, Introduction to Java Programming, Tenth Edition, (c) 2013 Pearson Education, Inc. All rights reserved. 1 Chapter 11 Inheritance and Polymorphism.
CpSc 462/662: Database Management Systems (DBMS) (TEXNH Approach) JAVA Script James Wang.
J AVA S CRIPT Shadi Banitaan 1. O UTLINE Introduction JavaScript Functions Using Objects in JavaScript Built-in Objects User-Defined Objects Examples.
INT222 - Internet Fundamentals Shi, Yue (Sunny) Office: T2095 SENECA COLLEGE.
CNIT 133 Interactive Web Pags – JavaScript and AJAX JavaScript Data Types.
Chapter 3 : Processing on the Front End JavaScript Technically its name is ECMA-262, which refers to the international standard which defines it. The standard.
Javascript & DOM. Javascript – main properties is a lightweight scripting language (language used to control the browser) that is run on the client-side.
The Web Wizard’s Guide To JavaScript Chapter 6 Working with Dates and Times.
Chapter 6: More JavaScript CIS 275—Web Application Development for Business I.
Tutorial 2 Variables and Objects. Working with Variables and Objects Variables (or identifiers) –Values stored in computer memory locations –Value can.
SE-2840 Dr. Mark L. Hornick 1 Modifying webpage behavior using client-side scripting Javascript.
Introduction to JavaScript Gordon Tian
Objects.  Java Script is an OOP Language  So it allows you to make your own objects and make your own variable types  I will not be going over how.
Chapter 6 Object-Oriented Java Script JavaScript, Third Edition.
Object Oriented JavaScript. JavaScript Really only 4 types in JavaScript – number, string, boolean – Object (includes arrays) Remember that an object.
OOP IN PHP `Object Oriented Programming in any language is the use of objects to represent functional parts of an application and real life entities. For.
Introduction To Classes Chapter Procedural And Object Oriented Programming Procedural programming focuses on the process/actions that occur in a.
Copyright 2003 Scott/Jones Publishing Standard Version of Starting Out with C++, 4th Edition Chapter 13 Introduction to Classes.
Functions Reusable Parts of Code SoftUni Team Technical Trainers Software University
CS346 Javascript -3 Module 3 JavaScript Variables.
CSE 341 Lecture 29 a JavaScript, the bad parts slides created by Marty Stepp see also: JavaScript: The Good Parts, by.
Basic HTML Hyper text markup Language. Lesson Overview  In this lesson, you will learn to:  Images  Colors.
Prototypal Inheritance. Can We Do Inheritance Without Classes? How do we share behaviour across objects.
Julian on JavaScript: Functions Julian M Bucknall, CTO.
Chapter 10: Classes and Data Abstraction. Objectives In this chapter, you will: Learn about classes Learn about private, protected, and public members.
Chapter 13: Overloading and Templates. Objectives In this chapter, you will – Learn about overloading – Become familiar with the restrictions on operator.
Lesson 16. Practical Application 1 We can take advantage of JavaScript and the DOM, to set up a form so that the first text box of a form automatically.
Unit 10-JavaScript Functions Instructor: Brent Presley.
Rich Internet Applications 2. Core JavaScript. The importance of JavaScript Many choices open to the developer for server-side Can choose server technology.
Color in Web Design. Overview: Color Topics Myths & Misconceptions Hexadecimal Notation Color Concepts and Issues.
HSB to RGB to HEX.
CHAPTER 10 ERROR HANDLING & DEBUGGING JavaScript can be hard to learn. Everyone makes mistakes when writing it.
Prototype Chain and Inheritance Prototype chain, Inheritance, Accessing Base Members Software University Technical Trainers SoftUni Team.
Chapter 10: Classes and Data Abstraction. Classes Object-oriented design (OOD): a problem solving methodology Objects: components of a solution Class:
PHP Reusing Code and Writing Functions 1. Function = a self-contained module of code that: Declares a calling interface – prototype! Performs some task.
1 Object-Oriented Programming Inheritance. 2 Superclasses and Subclasses Superclasses and Subclasses  Superclasses and subclasses Object of one class.
Liang, Introduction to Java Programming, Tenth Edition, (c) 2013 Pearson Education, Inc. All rights reserved. 1 Chapter 11 Inheritance and Polymorphism.
Object Oriented JavaScript. JavaScript Really only 4 types in JavaScript – number, string, boolean – Object (includes arrays) Remember that an object.
Copyright By Free for non-commercial use. Editable provided that the copyright claim is included.
1 Objects In JavaScript. 2 Types of Object in JavaScript Built-in objects User Defined Objects Browser Object Document Object Model.
1 Introduction to HTML. 2 Definitions  W W W – World Wide Web.  HTML – HyperText Markup Language – The Language of Web Pages on the World Wide Web.
What is an object?. What Makes an Object? An object has identity (it acts as a single whole). Every object has a name that identifies what it is. Ex.
Review 1 csc242 – web programming.
JavaScript Basics Stephen Delaney
Dr. Charles W. Kann III JavaScript Objects Dr. Charles W. Kann III
Scope, Objects, Strings, Numbers
14 A Brief Look at JavaScript and jQuery.
Seeing in colour Stare at the coloured dot in the middle of the next picture for a minute. Then describe what you see when you look at the next slide.
Built in Fairfield County: Front End Developers Meetup
PowerPoint Slide Design
Two ways to discuss color 1) Addition 2) Subtraction
University of Kurdistan
Javascript & DOM.
JavaScript Session III
Chapter 5 Classes.
Presentation transcript:

Copyright By Free for non-commercial use. Editable provided that the copyright claim is included.

Notational Conventions For Heading Slides: Background  Hue: Red, Yellow, Green, Cyan, Blue, Magenta  as in Iris  Saturation decreases  Brightness increases Color offset to Background Font size  decreases Position  Shifted right Sideline slides are grey

Notational Conventions Unordered List Bullets Ordered by color and the bigness of colored area Font size decreases  

Built in objects

Category Native Objects Built In  String, Number, Array, Image, Date, Math User-Defined Objects. Host Objects window

global is read only and cannot be referenced. window is a member of global. window refers to global.

NaN Infinity undefined

isNaN isFinite

parseInt parseFloat

URI decodeURI decodeURIComponent encodeURI encodeUTIComponent escape unescape

encodeURI('a//: 中文 ') "a//:%20%E4%B8%AD%E6%96%87" encodeURIComponent('a//: 中文 ') "a%2F%2F%3A%20%E4%B8%AD%E6%96%87"

Escape is used for strings encodeURI(‘a 中文 ') “a%20%E4%B8%AD% E6%96%87" escape("ab._ 中文 c") "ab._%20%u4E2D%u6 587c"

constructors Boolean Number String Object Function Array

constructors Date RegExp

error Error EvalError RangeError ReferenceError SyntaxError TypeError URIError

Math JSON

eval

Object can be used as a [function] Thus a constructor.

Object alert(Object instanceof Object);//true alert(Object instanceof Function);//true alert(typeof Object); //function Object function (){[navti ve code]} Object.pr ototype Inherit{1}.prototype “Creat e”.constructor inherit Object Function.prototype.constructor

Object.prototype

Object.prototype.toString ( ) [object class]

Function’s Constructor Function function (){[navti ve code]} Object.pr ototype Inherit{1}.prototype “Create”.constructor inherit Function Function.prototype.a=1; alert(Function.a);

(A function)’s Constructor function f() { } alert(f.constructor); alert(f.constructror.constructor); alert(Function.constructor); alert(f.constructor.constructor.c onstructor); alert(f.constructor.constructor.c onstructor.constructor); Function funct ion1 function (){[navti ve code]} Object.pr ototype Inherit{1}.prototype Create.constructor inherit

Function the [[Class]] Function is a sub[[Class]] of “Object”[[Class]]

Function.prototype

Function prototype object is itself a Function object (its [[Class]] is "Function") that, when invoked, accepts any arguments and returns undefined.

Unless specified otherwise, the [[Class]] internal property of a built-in object is "Function" if that built-in object has a [[Call]] internal property, or "Object" if that built-in object does not have a [[Call]] internal property.

Function Instances

function function a() { } a=function(){} function (){} new Function() Function(…)

String var a = String("a"); var b = new String("b"); alert(typeof a);//string alert(a);//a; alert(typeof b);//object alert(b);//b

Date Date() returns a string new Date() returns an object inspect( Date() ); inspect( new Date() );

Math [[Class]] Math

Array [[Class]]:Array

Date.prototype.toString This function returns a String value. The contents of the String are implementation-dependent, but are intended to represent the Date in the current time zone in a convenient, human-readable form.

JSON contains two functions, parse and stringify, [[Class]] JSON Extensible [[Construct]] false [[Call]] false

Thank You!