Question: What text does the following code display in the dialog box? var investment = $ 1 0 0 ; if ( isNaN (

What text does the following code display in the dialog box?
var investment ="$100";
if (isNaN(investment)|| investment <=0){
alert("Investment is not valid.");
} else {
alert("Investment: "+ investment.toFixed(2))
}
What text does the following code display in the dialog box?
var investment ="$100";
if (isNaN(investment)|| investment <=0){
alert("Investment is not valid.");
} else {
alert("Investment: "+ investment.toFixed(2))
}
Investment: $100.00
Investment: 100.00
Investment: $100
Investment is not valid.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!