From dfbaa8e54329fe90640b0201459b714d52e36fda Mon Sep 17 00:00:00 2001 From: 0xtechnobabble <0xtechnobabble@protonmail.com> Date: Mon, 16 Mar 2020 00:23:38 +0200 Subject: LibJS: Implement abstract equality and inequality --- Base/home/anon/js/type-play.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 Base/home/anon/js/type-play.js (limited to 'Base/home') 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]"); -- cgit v1.2.3