Category Archives: Javascript

Javascript Assessment

I have included the file with all the functions and variables required 🙂 has to be done in a case switch loop

Very very basic assignment, a blank html page with a button that says ‘Run Program’, a prompt for options 1,2 and 3.

Opt1() Forename +Surname, turns into F.SURNAME(caps)
Opt2() Generate lottery number
Opt3() Clears page and says ‘Program ended’

Trigger function execution

Your assignment is to create a page that will convert four ranges of miles to kilometers. The ranges are 1-50, 51-100, 101-150, and 151 to 200.

The page and tables are to be fully styled. The table rows are to be of an alternating color scheme for readability purposes. The conversions are to be implemented by pressing one of four styled buttons. All buttons are to be on the same page.