summaryrefslogtreecommitdiff
path: root/src/content/tils/2021/08/11
diff options
context:
space:
mode:
Diffstat (limited to 'src/content/tils/2021/08/11')
-rw-r--r--src/content/tils/2021/08/11/js-bigint-reviver.adoc5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/content/tils/2021/08/11/js-bigint-reviver.adoc b/src/content/tils/2021/08/11/js-bigint-reviver.adoc
index f7dd3de..98ee79b 100644
--- a/src/content/tils/2021/08/11/js-bigint-reviver.adoc
+++ b/src/content/tils/2021/08/11/js-bigint-reviver.adoc
@@ -65,7 +65,8 @@ console.log(typeof parsed[7]["a-bigint"])
The output of the above is:
-....
+[source,javascript]
+----
[
null,
true,
@@ -79,7 +80,7 @@ The output of the above is:
[null,true,false,-1,3.14,"a string",{"a-number":"-123"},{"a-bigint":"-123n"}]
string
bigint
-....
+----
If you're on a web browser, you can probably try copying and pasting the above
code on the console right now, as is.