mirror of
https://github.com/RGBCube/serenity
synced 2025-05-19 17:45:08 +00:00
LibJS: Implement exponentiation (** operator)
This commit is contained in:
parent
eafd3dbaf8
commit
0403845d3e
7 changed files with 48 additions and 1 deletions
|
@ -3,7 +3,7 @@ try {
|
|||
assert(10.5 % 2.5 === 0.5);
|
||||
assert(-0.99 % 0.99 === -0);
|
||||
|
||||
// Examples form MDN:
|
||||
// Examples from MDN:
|
||||
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Arithmetic_Operators
|
||||
assert(12 % 5 === 2);
|
||||
assert(-1 % 2 === -1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue