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 = 12
b. "7"+"5"= 75
c. 7 * 5=35
d. 7/5=1.4
e. 7 % 5 =1

Comments

Popular posts from this blog

Create an HTML document giving details of your name, age, telephone number, address, TLC code & enrolment number aligned in proper order.

Applet Not initialized properly’ Error in Finacle – Solution

Fresh installation of CSI Applications and Database