- Write a function that accept one number and return the factorial for that number
- example: if the number passed is: 3 ( 321 ) return 6
- Write a function that accepts an argument of a number
- If it is a multiple of 3, return "Fizz" instead of the number.
- If it is a multiple of 5, return "Buzz" instead of the number.
- If it is a multiple of both 3 and 5, return "FizzBuzz" instead of the number.
- Otherwise, return the number.
Start of with Modifying the basic HTML page called math.html
- Create a JavaScript file called task1.js.
- Modify the HTML and write the JavaScript necessary to create a web page that allows a user to do some basic mathematical computations(addition, multiplication and mod).
- The user should be able to enter numbers and press on a button to show the results of the calculation. white_check_mark eyes raised_hands
Start of with the following:
- Use file called
task2.html. - Write the JavaScript needed in a file called
task2.js. - Create a function which counts and displays the number of times a
buttonhas been clicked. - Create a function to convert rands into dollars, euros and pounds.
- Create a function which creates a drop-down menu with 25 option elements and add it to the HTML page you have created. Each option element should display the number of the option.
Use a loop.
- Create a calculator:
- It should have the layout similar to the calculator on your computer.
- Use CSS to help you style the layout.
- Use JavaScript functions to implement its operation.