in , , , , , ,

When you’re a JavaScript developer, but you like Python syntax more.

When you're a JavaScript developer, but you like Python syntax more. | developer-memes, javascript-memes, java-memes, python-memes, javascript dev-memes, error-memes, console-memes | ProgrammerHumor.io
developer-memes, javascript-memes, java-memes, python-memes, javascript dev-memes, error-memes, console-memes | ProgrammerHumor.io

Content

class Greeter constructor name, nameChangeable true this.name name this.nameChangeable nameChangeable sayHi console.log "He116, this.name) I changeName newName if newName. length was 0 console.error Name can’t be empty! else if this.nameChangeable console.log The name was changed "to nevName? this.name newName else console.error Name can’t be changed new Greeter "Bob" true sayHi (