The following works fine in Chrome and Firefox, however in Edge it will alert NaN no matter the input
NaN
Microsoft Edge is having broken behavior on valueAsNumber. This is reported as bug #669685. In addition, setting valueAsNumber yields an InvalidStateException.
valueAsNumber
This is fixed in Microsoft Edge 17682, currently available in an Windows Insider build.