Can Javascript native methods be used in the openfl html5 target?

Can Javascript native methods be used in the openfl html5 target?

For example, if I compile from “openfl” to “html5”, can “openfl” use the native methods of “JavaScript”?

For example, I define a ‘Float’ in ‘openfl’,
Can I use the ‘toFixed’ method when compiling to ‘JavaScript’,
I know that “JavaScript” floating-point variables have a built-in “toFixed” method

Can a condition be enabled for ‘Float’ to use the ‘toFixed’ method of ‘JavaScript’ floating-point variables?

I often use the “toFixed” method when using “as3 js ts”, and I am used to it. Thank you for your contributions

js.Syntax.code() may be used to inject some raw JavaScript code into your Haxe code.

@joshtynjala

Received, thank you for your response