Lab 4.1 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. They both have their own language that the computer reads, but javascript is more of an enhanced extension of html. Discuss one difference between JavaScript and HTML that suggests only JavaScript is a programming language. Javascript can act as a program, like the currency converter or microsoft excel. It can do math problems by typing in an equation. Html would not read an equation and work it out like javascript, it would just display it on the page as 3x+4=8. 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. The input is the numbers and menu information on the remote and the output is the tv screen changing pictures. CD player is is a cd put into the player and pressing play, pause, stop, rewind and the out put is the music stopping, playing, rewinding or pausing. 3. Consider the short JavaScript program you work with in Parts 2 and 3 of this lab. Does this program have input, output, both? Describe the input and/or output. How about the currency converter program? Does this program have input, output, or both? yes, the currency converter and parts two and three of lab have input and output. The input is the equation and the output is solving the equation for the answer. Parts 2 and 3 the input was putting in a key word or phrase and the output was changing the page or doing a key feature.