Question
Multiplying Strings?
Shouldn’t the following be illegal? In this example,
shouldn’t the parseInt() be used to convert the 2 strings
into an int and then multiplied?
var tenStr:String = new String("10");
var fiveStr:String = new String("5");
this.theAnswer = this.tenStr*this.fiveStr;
trace(this.theAnswer);//Output: 50
var tenStr:String = new String("10");
var fiveStr:String = new String("5");
this.theAnswer = this.tenStr*this.fiveStr;
trace(this.theAnswer);//Output: 50