Lecture E-Commerce - Chapter 29: PHP (part I). After studying this chapter you will be able to understand: What is PHP? What is a PHP file? What can PHP do? Why PHP? What do i need? Set up PHP on your own PC? Basic PHP syntax, PHP case sensitivity,. | CSC 330 E-Commerce Teacher Ahmed Mumtaz Mustehsan GM-IT CIIT Islamabad Virtual Campus, CIIT COMSATS Institute of Information Technology T3-Lecture-2 JavaScript Part - II For Lecture Material/Slides Thanks to: Objectives JS Variables JS Data Types JS Functions JS Events JS Objects JS Strings JS Numbers JavaScript Operators JavaScript Math Object JavaScript Dates JavaScript Booleans JavaScript Comparison and Logical Operators JavaScript Statements JavaScript loop statements ( for, while, do/while) JavaScript Best Practices T2-Lecture-7 Ahmed Mumtaz Mustehsan JS Variables JavaScript Variables JavaScript variables are "containers" for storing information: Example var x = 5; var y = 6; var z = x + y; T2-Lecture-7 Ahmed Mumtaz Mustehsan 1- Variables in Javascript Much Like Algebra x = 5 y = 6 z = x + y In algebra we use letters (like x) to hold values (like 5). From the expression z = x + y above, we can calculate the value of z to be 11. In JavaScript these letters are called variables. T2-Lecture-7 Ahmed Mumtaz Mustehsan 1- JavaScript Variables As with algebra, JavaScript variables can be used to hold values (x = 5) or expressions (z = x + y). Variable can have short names (like x and y) or more descriptive names (age, sum, totalVolume). Variable names must begin with a letter Variable names can also begin with $ and _ (but do not use it, special purpose.) Variable names are case sensitive (y and Y are different variables) Both JavaScript statements and JavaScript variables are case-sensitive. T2-Lecture-7 Ahmed Mumtaz Mustehsan 1- The Assignment Operator In JavaScript, the equal sign (=) is an "assignment" operator, is not an "equal to" operator. This is different from algebra. The following does not make any sense in algebra: x = x + 5 In JavaScript, however it makes perfect sense: Assign the value of x + 5 to the variable x. | CSC 330 E-Commerce Teacher Ahmed Mumtaz Mustehsan GM-IT CIIT Islamabad Virtual Campus, CIIT COMSATS Institute of Information Technology T3-Lecture-2 JavaScript Part - II For Lecture Material/Slides Thanks to: Objectives JS Variables JS Data Types JS Functions JS Events JS Objects JS Strings JS Numbers JavaScript Operators JavaScript Math Object JavaScript Dates JavaScript Booleans JavaScript Comparison and Logical Operators JavaScript Statements JavaScript loop statements ( for, while, do/while) JavaScript Best Practices T2-Lecture-7 Ahmed Mumtaz Mustehsan JS Variables JavaScript Variables JavaScript variables are "containers" for storing information: Example var x = 5; var y = 6; var z = x + y; T2-Lecture-7 Ahmed Mumtaz Mustehsan 1- Variables in Javascript Much Like Algebra x = 5 y = 6 z = x + y In algebra we use letters (like x) to hold values (like 5). From the expression z = x + y above, we can calculate