no cube root in javascript?

pseudostereo's icon

The Javascript Math object includes the static method Math.cbrt(), to calculate the cube root.

However, when I try to run a js object that uses this method, I get this error:

js: test.js: Javascript TypeError: Math.cbrt is not a function, line 8

I'm not getting the error with any other Math methods.

???

tyler mazaika's icon

max uses JavaScript ES5 (~2009).

pseudostereo's icon

Got it.
Too bad, but thanks.