Error in use of Bolean type of Javascript.

Feb 23 2011 1:03 AM

"Error in use of Bolean type of Javascript."

Syntax error is coming in document.write(true*5+false*7=) in the following program:

1-<html><head><title>Conversion between types, Quotes, Formatting characters</title>

2-<body>

3-<script language="Javascript">

4-document.write("true*5+false*7=")

5-document.write(true*5+false*7=)

6-</script>

7-</body></html>

What's wrong in the 5th line document.write(true*5+false*7=) of this program?

Thanks in advance.


Answers (5)