CISC 2350 Lecture 4: JAVA Script

13 views3 pages

Document Summary

var answer; answer = prompt("what city are we in? alert ("oh, we"re in " + answer): creates a pop-up. Rbg( + 67 + , + 152 + , + 88 + ) ; Rbg( + rd + , + gr + , + bl + ) ; Add an external script (. js file) to your web page that prompts the visitor for a color and changes the background color of the page to that color. You can do this the following way: document. body. style. backgroundcolor = orange ; (replace orange with the input color) Also pick a specific color (for example, blue) that you do not want. Else console. log( here we are in the else part ); Okay so counting is this: var x = 1 while (x < 1000) console. log ("done counting. console. log ("x is " + x); x += 1;

Get access

Grade+
$40 USD/m
Billed monthly
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
10 Verified Answers
Class+
$30 USD/m
Billed monthly
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
7 Verified Answers

Related Documents

Related Questions