Movatterモバイル変換


[0]ホーム

URL:


Menu
×
See More 
Sign In
+1 Get Certified Upgrade Teachers Spaces Bootcamps Get Certified Upgrade Teachers Spaces Bootcamps
   ❮     
     ❯   

Basic JavaScript

JS TutorialJS SyntaxJS VariablesJS OperatorsJS If ConditionsJS LoopsJS StringsJS NumbersJS FunctionsJS ObjectsJS ScopeJS DatesJS Temporal DatesJS ArraysJS SetsJS MapsJS IterationsJS MathJS RegExpJS DestructuringJS Data TypesJS ErrorsJS DebuggingJS ConventionsJS ReferencesJS 2026JS Versions

JS HTML

JS HTML DOMJS EventsJS ProjectsNew

JS Advanced

JS FunctionsJS ObjectsJS ClassesJS AsynchronousJS ModulesJS Meta & ProxyJS Typed ArraysJS DOM NavigationJS WindowsJS Web APIsJS AJAXJS JSONJS jQueryJS GraphicsJS ExamplesJS Reference


ECMAScript 2016


New Features in JavaScript 2016

Supported in all modern browsers sinceMarch 2017.

FeatureDescription
**Raises the first operand to the power of the second
**=Raises the value of a variable to the power of the right operand
Array includes()Checks if an element is present in an array

Browser Support

JavaScript 2016 is supported in all modern browsers sinceMarch 2017:

Chrome
52
Edge
15
Firefox
52
Safari
10.1
Opera
39
Jul 2016Apr 2017Mar 2017May 2017Aug 2016

ES 2016 is not supported in Internet Explorer.


Exponentiation Operator

Theexponentiation operator (**) raises the first operand to the power of the second operand.

Example

let x = 5;
let z = x ** 2;
Try it Yourself »

x ** y produces the same result asMath.pow(x, y):

Example

let x = 5;
let z = Math.pow(x,2);
Try it Yourself »

Exponentiation Assignment

Theexponentiation assignment operator (**=) raises the value of a variable to the power of the right operand.

Example

let x = 5;
x **= 2;
Try it Yourself »


JavaScript Array includes()

ECMAScript 2016 introducedArray.includes to arrays.

This allows us to check if an element is present in an array:

Example

const fruits = ["Banana", "Orange", "Apple", "Mango"];

fruits.includes("Mango");
Try it Yourself »



×

Contact Sales

If you want to use W3Schools services as an educational institution, team or enterprise, send us an e-mail:
sales@w3schools.com

Report Error

If you want to report an error, or if you want to make a suggestion, send us an e-mail:
help@w3schools.com

W3Schools is optimized for learning and training. Examples might be simplified to improve reading and learning.
Tutorials, references, and examples are constantly reviewed to avoid errors, but we cannot warrant full correctness
of all content. While using W3Schools, you agree to have read and accepted ourterms of use,cookies andprivacy policy.

Copyright 1999-2026 by Refsnes Data. All Rights Reserved.W3Schools is Powered by W3.CSS.

-->
[8]ページ先頭

©2009-2026 Movatter.jp