Dear Sir,
good evening sir, how are you doing? hope you are doing well. please i am having some difficulties in completing some javascript coding. please can you help me to answer me this questions by completing the code for me.
question number one:-
- complete the code for the function to display the result of Eulers number to the power of 4.
click the button to display the result of Eulers number to the power of 4.
calculate it
< p id=“result”>
function mymaxVal(){
document.getEelementById("result").innerHTML
=.......................
}
2) complete the code for the function to return the cosine value of 9.
click the button to show the cosine value of 9.
calculate it
< p id="result">
function mycos(){
document.getEelementById("result").innerHTML
=...........................
3)
click the button to display the result of Eulers number to the power of 4.
calculate it
< p id="result">
function myExpVal(){
document.getEelementById("result").innerHTML
=..................................
4)
click the button to display a random number between 1 and 50.
Try it
< p id="result">
function myRanVal(){
Var r = document.getEelementById("result")
r.innerHTML= Math.floor((.................);
}
5)
click the button to round the number 3.7 downward to its nearest interger.
calculate it
< p id="result">
function myfloorVal(){
document.getEelementById("result").innerHTML
=.........................;
6)
click the button to absolute value of -11.21
Try it
< p id="result">
function myAbsVal(){
document.getEelementById("result").innerHTML
=.........................
7)
click the button to display the arctangent of 6/2.
calculate it
< p id="result">
function myArctan(){
alert(.......................................)
8)
click the button to round the number 3.7 to its nearest interger.
calculate it
< p id="result">
function myRndVal(){
document.getEelementById("result").innerHTML
=................................;
Please i will be very grateful if you can help me complete these codes.
thank you for your understanding.
regards
your student,
Dini Pascal