me when

school = "tomorrow"
if school == "tomorrow":
  print("NOOOOOOOOOO")
elif school == "next time":
  print("YESSSSSSSSS")
else:
  print("UNDEFINED.")

me when I have

class Foo {
  constructor(){}
  bar() {
    console.log("the");
  }
}

and I

var baz = new Foo();
baz.bar();

and it doesn’t work

EDIT: it’s because baz in my code was named window and window is reserved

Dec 19, 2021, 10:09 PM
0 1 0
Dec 19, 2021, 11:33 PM
3 0 0

comments