Evaluate the expression:
Code
<html>
<script language="javascript">
document.write("a. 7+5 "+"= "+(7+5) );
document.write("<br>");
document.write("b. \"7\"+\"5\""+"= "+7+5);
document.write("<br>");
document.write("c. 7 * 5" +"="+ 7*5);
document.write("<br>");
document.write("d. 7/5"+"="+7/5);
document.write("<br>");
document.write("e. 7 % 5 "+" ="+7%2);
</script>
</html>
output
a. 7+5 = 12Code
<html>
<script language="javascript">
document.write("a. 7+5 "+"= "+(7+5) );
document.write("<br>");
document.write("b. \"7\"+\"5\""+"= "+7+5);
document.write("<br>");
document.write("c. 7 * 5" +"="+ 7*5);
document.write("<br>");
document.write("d. 7/5"+"="+7/5);
document.write("<br>");
document.write("e. 7 % 5 "+" ="+7%2);
</script>
</html>
output
b. "7"+"5"= 75
c. 7 * 5=35
d. 7/5=1.4
e. 7 % 5 =1
Comments
Post a Comment