diff --git a/lang/Javascript.wiki b/lang/Javascript.wiki index 48f7c2b..9f1f4e6 100644 --- a/lang/Javascript.wiki +++ b/lang/Javascript.wiki @@ -9,3 +9,16 @@ See [[Node.js.wiki]] for the core runtime of backend js (node) See [[../tech/express.js.wiki]] +== Logging == + +To log several objects as a single command, run + +{{{ +console.log({foo, bar, baz}); + }}} + +To edit to appearance of the log, use printf esk statements + +{{{ +console.log('%c this text is orange', 'color: orange; font-weight: bold'); + }}}