1. A programming language is designed to be a human-readable (and -writeable!)
way to tell computers what to do. Programming languages allow us to give
computers instructions. Most computer scientists would agree that JavaScript is a
programming language, but many would not consider HTML one. Discuss one
similarity between JavaScript and HTML that suggests both might be
programming languages.
Both JavaScript and HTML can be run without the connection to the Internet. An HTML file can be written and opened on a computer that is completely disconnected from the Internet; the JavaScript programs on a non-networked computer also works the same way.
Discuss one difference between JavaScript and HTML that suggests only
JavaScript is a programming language.
Although JavaScript can be written and run without a network, for it to work, it has to be uploaded to a web-server.
2. Consider the concepts of input and output in the context of everyday devices. The
telephone takes input via its dialing buttons (or dial, if you have a rotary phone)
and the end of the handset you speak into. Phone output comes from the ringer
and the end of the handset you listen to. Consider each the following everyday
devices and describe their input and output as thoroughly as possible: television,
portable CD player.
For the television, the input is when people do something infront of the camera and then the output of that would be people seeing it in their television sets. For a CD player, the input would be the CD that is placed in the player. The laser that is inside the CD player is used to transmit the sound to the earphones or the speakers to be the output.
3. Consider the short JavaScript program you work with in Parts 2 and 3 of this lab.
Does this program have input, output, both?
Parts 2 and three, only has output
Describe the input and/or output.
A dialogue comes up when a script is written and a page is being pulled up.
How about the currency converter program? Does this program have input,
output, or both?
The converter program both has input and output. The input part of the convert is the typing of the number into the dialogue box. The output would be when the number is converted to Euros