News for hackers. Stuff that matters.
Re:Show HN: Scratch.js – Interactive JavaScript Scratchpad by Lerc on Wednesday November 18, 2020 @06:25PM (#25144041)
Suggestions:

  If the result is an Element (or perhaps Node) insert it into the document instead of for example "[object HTMLCanvasElement]"

  A potentially more difficult one would be automagically hoisting functions defined in the document when you hit ctrl-enter.  
function factorial(n) { ...the usual... }

factorial(7);// [ctrl-enter] on just this line works

Re:Show HN: Scratch.js – Interactive JavaScript Scratchpad by kahole on Wednesday November 18, 2020 @06:44PM (#25144244)
Great suggestions!