• HiddenLayer555@lemmy.ml
    link
    fedilink
    English
    arrow-up
    35
    ·
    edit-2
    17 hours ago
    void main() {
        //code
    }
    

    Is better than

    void main()
    {
        //code
    }
    

    Why would you want to put it on a separate line? Are you paid by the height of the source file or something?

    • pineapple@lemmy.ml
      link
      fedilink
      English
      arrow-up
      2
      ·
      16 hours ago

      void main() { //code }

      No, all in one line baby!! I haven’t done JavaScript in a while but I think that will work. After coming from python I thought it was funny you could just put everything in one line.