mirror of
https://github.com/RGBCube/serenity
synced 2025-05-25 19:15:06 +00:00
LibJS: Implement abstract equality and inequality
This commit is contained in:
parent
4d22a142f7
commit
dfbaa8e543
6 changed files with 64 additions and 2 deletions
12
Base/home/anon/js/type-play.js
Normal file
12
Base/home/anon/js/type-play.js
Normal file
|
@ -0,0 +1,12 @@
|
|||
const object = {};
|
||||
|
||||
print(true == 1);
|
||||
print(null == undefined);
|
||||
print("12" == 12);
|
||||
print(1 + "12");
|
||||
print(12 / "12" == true);
|
||||
print(2 * "12");
|
||||
print(~"24");
|
||||
print(~true);
|
||||
print(2*2 + "4");
|
||||
print(object == "[object Object]");
|
Loading…
Add table
Add a link
Reference in a new issue