Skip to content

My Green Life

Things I love, things I hate, and things I just don't understand

Tag: JavaScript

Extending console.log() to show trend reversal in an array of numbers

Mark Friday, 1st July, 2022Friday, 1st July, 2022 Leave a comment

In the previous post I used a JavaScript proxy object to extend console.log() to show a small coloured flag next to the output, when called as console.log.red(), or console.log.orchid() – or any other CSS colour name. The code was a …

Read more
Miscellaneous Tech Web

Colouring console.log() with a JavaScript proxy object

Mark Thursday, 30th June, 2022 Leave a comment

Are you the sort of web developer who uses console.log() to log out the flow through your code, confirming it’s following the paths you expect. Do you end up with liberal sprinklings of console.log() calls, each with a prefix or …

Read more
Miscellaneous Tech Web

Categories

  • Games
  • Miscellaneous
  • Music
  • My Green Life
    • Things I Hate
    • Things I Just Don't Understand
    • Things I Love
  • Tech
    • Linux
    • PDAs
    • SVG
    • Web
    • XUL
July 2025
M T W T F S S
« Jul    
 123456
78910111213
14151617181920
21222324252627
28293031  

General Links

  • I paid up to protect your bits. Open Rights Group.
  • Otnews.net
  • The Greys

Also from the writer of this blog...


...a fortnightly sci-fi webcomic

Recent Posts

  • Extending console.log() to show trend reversal in an array of numbers
  • Colouring console.log() with a JavaScript proxy object
  • Do not mourn for things not done
  • ddrescue article from Linux Voice issue #13
  • No Comment
Copyright © 2025 My Green Life.
Powered by WordPress. | Theme: colorskin by Dimitrakopoulos.