The following will be the result of doing
document.write("2" + "3");
The following will be the result of doing
document.write(2 + "3");
The following will be the result of doing
document.write("2" + 3);
The following will be the result of doing
document.write(2 + 3);
The following will be the result of doing the
following JavaScript. This is an example
of concatenation "gone horribly wrong"
var cTemp = 20; // celsius temperature is 20
document.write("The temperature in Farenheit is:" + ( cTemp / 5 * 9 ) + 32 );
The following will be the result of doing the
following JavaScript. This is an example
of what I _should_ do if I have a correct
understanding of how concatenation works,
and how the + operator works differently
in different contexts:
var cTemp = 20; // celsius temperature is 20
document.write("The temperature in Farenheit is:" + (( cTemp / 5 * 9 ) + 32 ));
Let's see if the less than sign shows up: <
Did it show up?
Let's see if the less than sign shows up: >
Did it show up?
Let's see if the ampersand shows up: &
Did it show up?
But if we put a tag in here, such as:
The tag stands for Bold, but use instead
The tag stands for Italics, but use instead
Is this in bold and/or italics?