variables in js class

JavaScript
constructor(){
    this.foo = bar
}
Source

Also in JavaScript: