• @settoloki
    link
    238 months ago

    That code wouldn’t work, the variable hack is never set.

      • macniel
        link
        fedilink
        108 months ago

        Except that’s how you write JavaScript embedded in html. At least that was the way when there were browsers that didn’t know the script-tag.

    • @kautau@lemmy.world
      link
      fedilink
      78 months ago

      No, the variable code is set to a string of “hack”

      The code will work, but will just run the course of the else path and replace all the HTML with bold text that says “Unknown Reso

      And whatever else that cut off string contains

      • @settoloki
        link
        18 months ago

        var code is set to hack. Though the code would run didn’t notice the lace condition is an else not an else if