• shastaxc@lemm.ee
    link
    fedilink
    arrow-up
    7
    ·
    6 months ago

    A script is just a file that can execute a series of commands without the need to compile

    • Centaur@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      edit-2
      6 months ago

      They compile in some point of time because CPU don’t know shit about Javascript. But that is for some other discussion.

      Edit: typo

    • dan@upvote.au
      link
      fedilink
      arrow-up
      1
      ·
      6 months ago

      Are you referring to AOT compilation specifically? JavaScript in V8 is JIT compiled if it’s “hot” (executed enough that the cost of JIT compilation is less than the cost of continuing to run it in interpreted mode).