summaryrefslogtreecommitdiff
path: root/shell/samples/lib.console.js
diff options
context:
space:
mode:
Diffstat (limited to 'shell/samples/lib.console.js')
-rw-r--r--shell/samples/lib.console.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/shell/samples/lib.console.js b/shell/samples/lib.console.js
new file mode 100644
index 00000000..ec4a713b
--- /dev/null
+++ b/shell/samples/lib.console.js
@@ -0,0 +1,7 @@
+import console from '../lib/console';
+
+const number = 1;
+const string = 'foo';
+const object = { a: 1, b: 2 };
+
+console.log('number = %d\nstring = %s\nobject = %o', number, string, object);