From d0cf957d0bafde50815120f50c556351afa4bc5f Mon Sep 17 00:00:00 2001 From: minoblue Date: Sun, 13 Oct 2024 23:10:28 +0530 Subject: [PATCH] Update javascript.html.markdown // Exponentiation (x**y, x to the yth power) 2**3; // => 8 --- javascript.html.markdown | 3 +++ 1 file changed, 3 insertions(+) diff --git a/javascript.html.markdown b/javascript.html.markdown index c7ee6dea..e27735a9 100644 --- a/javascript.html.markdown +++ b/javascript.html.markdown @@ -60,6 +60,9 @@ doStuff() 30 % 4; // = 2 18.5 % 7; // = 4.5 +// Exponentiation (x**y, x to the yth power) +2**3; // => 8 + // Bitwise operations also work; when you perform a bitwise operation your float // is converted to a signed int *up to* 32 bits. 1 << 2; // = 4