Skip to content

Tag: javascript

how to make var return 0.00 instead of NaN?

Im working on a price calculator at the moment but in the var proapp2 it will show NaN when the pro app Benutzer slider is 0 how can i make it show 0.00 instead of NaN? i tried if (isNaN(proapp2)) proapp2 = 0.00; but it didnt work?What am i doing wrong?Also i want it to return 0.00 instead of 0.i

Typescript Array Push wiping string value

I am trying to build an angular app for a personal project and my first webform is exhibiting behavior I don’t understand. I have an interface as follows with a service to update an array of that interface. The array is instantiated in the service from existing json. My component uses a checkItemForm to…