summaryrefslogtreecommitdiff
path: root/Base/home
diff options
context:
space:
mode:
author0xtechnobabble <0xtechnobabble@protonmail.com>2020-03-16 00:23:38 +0200
committerAndreas Kling <kling@serenityos.org>2020-03-16 13:42:13 +0100
commitdfbaa8e54329fe90640b0201459b714d52e36fda (patch)
tree36816fe7aacff0472b33a93a676dd2eb57db6870 /Base/home
parent4d22a142f7cd3a45debee1cfd0a38de030ef54c5 (diff)
downloadserenity-dfbaa8e54329fe90640b0201459b714d52e36fda.zip
LibJS: Implement abstract equality and inequality
Diffstat (limited to 'Base/home')
-rw-r--r--Base/home/anon/js/type-play.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/Base/home/anon/js/type-play.js b/Base/home/anon/js/type-play.js
new file mode 100644
index 0000000000..038841397c
--- /dev/null
+++ b/Base/home/anon/js/type-play.js
@@ -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]");