JavaScript.

Slides:



Advertisements
Similar presentations
Introducing JavaScript
Advertisements

Chapter 2 Review Questions
Bellevue University CIS 205: Introduction to Programming Using C++ Lecture 3: Primitive Data Types.
Working with JavaScript. 2 Objectives Introducing JavaScript Inserting JavaScript into a Web Page File Writing Output to the Web Page Working with Variables.
10 November JavaScript. Presentation Hints What do YOU think makes a good presentation Some of my suggestions Don’t write full sentences on slides Talk,
Tutorial 10 Programming with JavaScript
Information Technology Center Hany Abdelwahab Computer Specialist.
CS31: Introduction to Computer Science I Discussion 1A 4/2/2010 Sungwon Yang
Javascript II Expressions and Data Types. 2 JavaScript Review programs executed by the web browser programs embedded in a web page using the script element.
Data Types. Every program must deal with data The data is usually described as a certain type This type determines what you can do with the data and how.
WEB DESIGN AND PROGRAMMING Introduction to Javascript.
Programming with JavaScript (Chapter 10). XP Various things Midterm grades: Friday Winter Career Fair – Thursday, April 28, 2011 (11 am to 3 pm). – MAC.
08/10/ Iteration Loops For … To … Next. 208/10/2015 Learning Objectives Define a program loop. State when a loop will end. State when the For.
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. XP Objectives Learn the history of JavaScript Create a script element Understand basic JavaScript syntax Write.
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.
3 - Variables Lingma Acheson Department of Computer and Information Science, IUPUI CSCI N331 VB.NET Programming.
Data & Data Types & Simple Math Operation 1 Data and Data Type Standard I/O Simple Math operation.
Using Data Within a Program Chapter 2.  Classes  Methods  Statements  Modifiers  Identifiers.
CS346 Javascript -3 Module 3 JavaScript Variables.
XP Tutorial 10New Perspectives on HTML and XHTML, Comprehensive 1 Working with JavaScript Creating a Programmable Web Page for North Pole Novelties Tutorial.
Repetition Structures Repetition Structures allow you to write programs that will repeat program steps multiple times. –Also called Loops –Counter controlled.
Dr. Qusai Abuein1 Internet & WWW How to program Chap.(6) JavaScript:Introduction to Scripting.
Introducing C++ Programming Lecture 3 Dr. Hebbat Allah A. Elwishy Computer & IS Assistant Professor
Other Variable Types Dim lab as String makes a box that can store a label tag Dim ColHead As String ColHead = “function” ColHead function Dim lab as Boolean.
School of Computer Science & Information Technology G6DICP - Lecture 4 Variables, data types & decision making.
 2008 Pearson Education, Inc. All rights reserved JavaScript: Introduction to Scripting.
1 Server versus Client-Side Programming Server-SideClient-Side.
1 JavaScript in Context. Server-Side Programming.
Chapter 4 Getting Started with VBA. Subroutines Subroutine is the logical section of code that performs a particular task. Subroutine is also called a.
Tutorial 10 Programming with JavaScript. 2New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition Objectives Learn the history of JavaScript.
Spring 2009 Programming Fundamentals I Java Programming XuanTung Hoang Lecture No. 8.
 Variables can store data of different types, and different data types can do different things.  PHP supports the following data types:  String  Integer.
Project 4: Working with Variables Essentials for Design JavaScript Level One Michael Brooks.
Internet & World Wide Web How to Program, 5/e © by Pearson Education, Inc. All Rights Reserved.
Tutorial 10 Programming with JavaScript. 2New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition Objectives Learn the history of JavaScript.
Clearly Visual Basic: Programming with Visual Basic 2008 Chapter 11 So Many Paths … So Little Time.
JavaScript and AJAX 2nd Edition Tutorial 1 Programming with JavaScript.
XP Tutorial 10New Perspectives on HTML, XHTML, and DHTML, Comprehensive 1 Working with JavaScript Creating a Programmable Web Page for North Pole Novelties.
Visual Basic Declaring Variables Dim x as Integer = 0 In the statement above, x is being declared as an Integer (whole number) and is initialised.
1 Agenda  Unit 7: Introduction to Programming Using JavaScript T. Jumana Abu Shmais – AOU - Riyadh.
Basic concepts of C++ Presented by Prof. Satyajit De
Chapter 6 JavaScript: Introduction to Scripting
Chapter 2: Introduction to C++
Tutorial 10 Programming with JavaScript
JavaScript Objects.
Introduction to Scripting
Computer Science 3 Hobart College
Introduction to C++ October 2, 2017.
Chapter 2: Introduction to C++
Chapter 2.
IDENTIFIERS CSC 111.
2.1 Parts of a C++ Program.
WEB PROGRAMMING JavaScript.
T. Jumana Abu Shmais – AOU - Riyadh
Variables Kevin Harville.
JavaScript Part 2.
Additional Topics in VB.NET
Tutorial 10 Programming with JavaScript
Chapter 2: Introduction to C++.
CSCI N207 Data Analysis Using Spreadsheet
Programming In Lesson 4.
Tutorial 10: Programming with javascript
JavaScript: Introduction to Scripting
Variables Here we go.
CHAPTER 2 BASIC JAVASCRIPT INSTRUCTIONS
PYTHON - VARIABLES AND OPERATORS
Presentation transcript:

JavaScript

Inserting JavaScript

Comments A single line comment in javascript occupies a single line and may be inserted by starting it with two slashes.A multi-line comment should be enclosed using /* and */.

Case Sensitivity Be careful in writing your codes especially with upper and lower case. Remember that in JavaScript, A is different from a. Variables and function calls written differently will result to an error.

Variables A variable is a temporary storage for values that you will use in your program.

Data Types A string value is enclosed in single or double quotes and may contain any character or set of characters. Numeric types are composed of numbers that are being used for calculations. Boolean types provide results that is either true or false. Null does not have any value.

Statements It can either be declaration, function calls, or commands. The prompt() function is used to display a dialog box that will ask the user to enter a number in the textbox.