var n = 30; // number
var m = 70; // number
var s = new String();// "3070"
s = String(n) + String(m);
s = Number(n) + Number(m);
Now try to guess what the outcome is if you try Number(n) + String(m). If you've
produces a string, "3070".
If you've followed everything thus far, you may be interested to know that you can
temporarily cast a variable to a Boolean value with Boolean(). For example:
var n = 50; // number
var b = Boolean(n); // b is "true"
var c = Boolean(n - 50); // c is "false"
For extra credit, try figuring out what the following Boolean code evaluates to:
var s = new String(); // null string
var b = Boolean(s); // what is it?
The answer may surprise you. A null string evaluates to true. Unless you shroud it
in Number(), in which case it is false.
Thanks to Magazinify.com, it's possible to have web articles delivered right to your inbox in PDF form. If that weren't enough, the nice folks at CNET have been nice enough to publish a step-by-step guide about how to set this all up using just a little time and a free Magazinify account.
Despite the numerous benefits, there can be potential issues with the conversion of paper documents into electronic archives. When scanning paper pages into PDF, it's possible to end up with the odd- and even-numbered pages in separate PDF files. It can be very time-consuming to collate them manually, but there is an easier way. Sean Stewart explains.