The new String( ) constructor
Click Here to run the script in a new window.
Below is the actual ASP Script that does the heavy lifting.
new String( ) in Action:
Now check out the ASP lines below.
var monthlySalary = new String( Request.Form("monthlySalary") ) monthlySalary = monthlySalary.toLowerCase();
Without new String( ):
Take a look at the line I printed below.
var WebPageVariable = Request.Form("WebPageVaraible").toUpperCase();
Microsoft JScript runtime error '800a01b6' Object doesn't support this property or method /asp/Section01/script03b.asp, line 9