Output:
Hi there Flash!
Hi there, Cheryl, nice to meet you.
Yay
200
Script:
var message = "Hi there Flash!";
Hi there Flash!
Hi there, Cheryl, nice to meet you.
Yay
200
Script:
var message = "Hi there Flash!";
//declare a new variable named message, and assign it the value "Hi there Flash!
/*-remember the phrase 'Hi there Flash!'
-label the information message
-whenever I ask you for message, give me back the text 'Hi there Flash!*/
var firstName = "Cheryl";
trace(message);
trace("Hi there, " + firstName + ", nice to meet you.");
-label the information message
-whenever I ask you for message, give me back the text 'Hi there Flash!*/
var firstName = "Cheryl";
trace(message);
trace("Hi there, " + firstName + ", nice to meet you.");
//the trace() command requires the text to display
if(firstName=="Cheryl"){trace(else if(firstName=="Ranen"){trace("
else{trace("Ha Ha");}
//the equality operator, ==, tests if two data values are equal
function displayArea (width, height) { trace(width * height); }
displayArea(10, 20);
displayArea(10, 20);