JavaScript Basic Operations Part 3

Objectives

  • The user will input an amount in U.S. dollars
  • The script will calculate for each of the currencies displayed in the table below
Click to slide the panel down or up
The foreign exchange rates in June 2021

Enter a dollar amount in the table below to see the corresponding foreign exchange values
Currency Exchange Rate Value
Euro (EUR) 0.85
Canadian Dollar (CAD) 1.26
Japanese Yen (JPY) 110.57
Mexican Peso (MXN) 20.11

Part 1


Create a webpage that contains the script document.write() to add stylized text to the wepage.

View Part 1

Part 2


Use input fields and Math Object Methods to calculate sum, average, and product of three integers.

View Part 2

Part 3


The objective is to create a tool that allows the user to see the currency exchange rate of the US dollar.

View Part 3