Here is a codepen for a browser implementation of console.log (and others) to teach data types.
Browser implementation of:
console.log()
console.clear()
console.warn()
console.trace()
- The console's logs the "typeof" of the value logged
- The index of array items and property-value pairs in objects are also logged
Top comments (5)
I never thought a
console.warn
could look so cute, love it!:)
Love the art!!
Btw, feel free to add in your codepen as an embed with our Liquid tag:
It'll show up like this!
thanks!