Skip to content

katayouny/Currency-Converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Currency-Converter

A Currency Converter application in Javascript:

A real-time market status shows wether the market is open or clesed for handling. Based on an array of currency objects, The brandObjectArray, the APP allows users to create and manage currency exchange rates, perform currency conversions, and visualize currency rates with the option of rate range filtering. Additionally, the APP includes an object containing special conversion rates, specialRates, witch based on that checks for special rates and displays a warning if the conversion rate is too high.

The brandObjectArray in 'script.js' is declared beased on the below model, which will be fetched from a json file:

[ { "timestamp": 1519296206, "base": "EUR", "date": "new Date().toLocaleDateString()", "rates": {} }, { "timestamp": 1519296206, "base": "USD", "date": "new Date().toLocaleDateString()", "rates": {} }, { "timestamp": 1519296206, "base": "DKK", "date": "new Date().toLocaleDateString()", "rates": {} } ]

specialRates object: { EUR: { USD: 1.5, DKK: 8, }, USD: { EUR: 1.1, DKK: 7, }, DKK: { EUR: 0.3, USD: 0.3, }, };

About

A Currency Converter in Javascript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published