Follow each subproblem instructions. a. For each of the following variables, cor
ID: 3811461 • Letter: F
Question
Follow each subproblem instructions.
a. For each of the following variables, correct only those which are not legally declared, by removing all its incorrect characters:
A: rumpelstinski%
B: tax Season
C: $FreddyKrueger
D: 123Jump!
b. Express in code the following instruction:
“If the variable age is greater than 21, display an alert which displays: Access Granted! - “
Express the following mathematical expression as a single legal Javascript statement.
[Note: the dot (.) indicates a multiplication]
You can use the builtin function Math.pow(base,exponent) [Example: the result of Math.pow(5,2) is 25] .
P . (1 + r/n) nt
var compoundInterest = _______________________________________________________________
Explanation / Answer
a.
A.rumpelstinski
B.taxSeason
C. correct
D.Jump
-----------------------------------
b.
}
------------------
c.
var compoundinterest= p*(Math.pow((1+r/n),n*t))