22
Hope
6y

var m = Me()
var f = Friend()

f.speak("I just wiped my whole disk drive with everything on it and I just realized how much I didn't care about all those movies I didn't watch or the TV shows that I'm keeping on the side...... It's like a clean new PC and I feel so free")

m.speak("Stop with the spiritual bullshit. You were installing Windows and it was a mistake right?")

f.cryAndNod()

m.sigh()

Comments
  • 4
    Ah, stuck in ES5... 😔
  • 4
    @olback
    This is Swift not JS..... Sorry to disappoint
  • 2
    @Hope Ah, syntax is exactly the same in js. This is valid js as well. Oh well 🤷‍♂️
  • 8
    @olback you could argue this is "valid half of the languages that exist"
  • 9
  • 2
    @rantOverflow Semicolons are optional in js.
  • 1
    @olback Not exactly, this is not Kotlin. JS interpreter will put a semicolon automatically where it thinks as a right place. I will hunt you down if you don't put it after the end of every statement.

    Well, i probably can't because you will busy trying to find the "problem" in your code all the time. Just keep that code away from me.
  • 2
    @illegaldisease well yeah, I never said it was a great idea to write js without semicolons. It's not.
Add Comment