Homework Help
Javascript class. 4.4 modify this script to use promt to input a
4.4 modify this script to use promt to input a number n that is the number of the fibonacci number as output
<!–
var i;
var fib = [];
fib[0] = 0;
fib[1] = 1;
for(i=2; i<=10; i++)
{
fib[i] = fib[i-2] + fib[i-1];
document.write(fib[i]);
}
4.5 Input: A text string, using prompt
Output: either”valid name” or “invalid name”,depending on whether the input names fit the required format, which is
Last name, first name, middle initial
where neither of the names can have more than 15 characters
4.6 Input : A line of text, using prompt.
Output: The words of the input text, in alphabetical order.