Modify the script of Exercise 4.2 to use prompt to input a number n that is the

Question:

Modify the script of Exercise 4.2 to use prompt to input a number n that is the number of the Fibonacci number required as output.


Data from exercise 4.2

Output: A table of the numbers from 5 to 15 and their squares and cubes, using alert.


Write, test, and debug (if necessary) JavaScript scripts for the problem that above. When required to write a function, you must include a script to test the function with at least two different data sets. In all cases, for testing, you must write an HTML file that references the JavaScript file.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: