How to write Scientific notation literal in Javascript?

The following Javascript code defines a float point value with Scientific notation.

       var floatNum = 1.234e7; 

       document.writeln(floatNum);