Javascript Page
Answers to Questions:
-
Both Javascript and HTML could be considered programming languages
because they are both mediums by which someone can tell the computer what
to do. While javascript is more of a programming language in that it tells
the computer to run a program, HTML is used to tell the computer to display
information of the web.
Although the difference between the two are evident. Javascript is a programming
language that allows the programmer to input commands into the computer so that
the computer can read the language and know to run a certain program off of those
instructions. HTML, on the other hand, does not specifically tell the computer
to run a program, instead merely is used to design a web page. In other words,
HTML has limited programming capablilities.
-
The television utilizes a remote or tuner box so that the user can input iformation,
such as changing channels or adjusting the volume. The output of the television is the
corresponding display of the channel desired and the sound of the volume elevating.
A portable CD player has an input device located directly on the player. It allows you to
input information such as play, pause, or eject. The corresponding output is that the CD
begins to play, pauses for a moment, or literally ejects respectively.
Therefore we can consider a computer in the same light. We input information into the
computer by typing in words and phrases, and the output of the computer is that it displays
the desired output, such as a program or web page.
-
The program entered into the computer did have input and output components. The input
component would obviously be the typing of the words and phrases in the javascript language.
The output from the computer was the corresponding display of both text and the alert message
program that displayed when the page was opened.
The currency converter also has both input and output components. The input was the physical
typing of the javascript to tell the computer to run the currency converter program. The
output was the actual window that opened to calculate the amount of Fiji Dollars in the entered
U.S. Dollars. Also, a second input/output component was the entering of the U.S. dollar amount
into the pop-up window to get the amount of Fiji Dollars. The output of this input was the
calculation and display of the corresponding amount of Fiji Dollars.