Variables and data types Flashcards
Example languages that run directed on the OS
C++, Java, C#, Objective-C
Example scripting languages that run through another application
ActionScript, Javascript, VBScript
actionscript runs on
flash
javascript runs
through browsers
VBscript runs
on MS office
scripting languages are ______ languages
interpreted
languages that have curly brackets {, } or semi colons ; are languages that influenced by __________ programming
C
write script for a little popup thats says Hello World
alert(“Hello World”);
variables are used to ….
hold data
var year;
variable =
year
var date;
variable =
date
THIS ENTIRE COURSE IS BASED ON
Javascript!
OTHER LANGUAGES MAY BE DIFFERENT
Rules for writing variables
IN JAVASCRIPT
1) Can use letters
2) Can use numbers
3) Can use $ (dollar sign)
4) Can use _ (underscore)
5) cannot start variable with a number sign
creata a variale that is = 2011
var year;
year = 2011;
var year;
year = 2011;
shorten this statement
var year = 2011;
technically:
year = 2011;
is equivalent to var year = 2011;
because javascript will look for a variable called year and will assume year = 2011; = var year = 2011;