Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Also interested. Looks like a lot of it is JS code written by hand. This is certainly readable code: https://ciechanow.ski/js/navarch.js


First time I've ever seen JS blocks statements in the wild; I wonder if the author is coming from a language where that's common.


>JS blocks statements

What are those?


    { // Start of block statement.
      const foo = "a" + 2; // Only available inside block statement.
      console.log(foo); // "a2"
    } // End of block statement.
    console.log(foo); // Uncaught ReferenceError: foo is not defined




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: