add exponentiation operator

This commit is contained in:
Sebastian McKenzie
2014-11-23 22:55:20 +11:00
parent b599e2c794
commit fafdb1a18a
11 changed files with 40 additions and 1 deletions

View File

@@ -0,0 +1 @@
num **= 2;

View File

@@ -0,0 +1,3 @@
"use strict";
num = Math.pow(num, 2);

View File

@@ -0,0 +1 @@
2 ** 2;

View File

@@ -0,0 +1,3 @@
"use strict";
Math.pow(2, 2);

View File

@@ -0,0 +1,3 @@
{
"experimental": true
}