basic javascript question Math.abs() What include library?

the Math.abs() function is undefined and I don’t know what library to include for the header and nor do I know how to declare it (I’m more of a c++ programmer) at the top of the file.

I just want the absolute value of a value.

I guess Unity isn’t actually javascript instead ECMAscript that looks like javascript?

Mathf.Abs

Unityscript is unityscript.

You don’t include libraries in Unity. The docs are searchable; just put “abs” in the search box.

–Eric