




class Person
var Person; Person = (function() { function Person() {} return Person; })();

food = 'toast'aFood = foodconsole.log aFood# 'toast'
foods = ['toast', 'cheese', 'wine']theFood = foodsconsole.log theFood# ['toast', 'cheese', 'wine']
foods = ['toast', 'cheese', 'wine']first = foods[0]console.log first# 'toast'
foods = ['toast', 'cheese', 'wine']first = foods[0]console.log first# 'toast'
foods = ['toast', 'cheese', 'wine']first = foodsconsole.log first# ['toast', 'cheese', 'wine']
foods = ['toast', 'cheese', 'wine'][first] = foodsconsole.log first# 'toast'
foods = ['toast', 'cheese', 'wine'][first, second, third] = foodsconsole.log first, second, third# toast cheese wine
foods = {carb: 'toast', fat: 'cheese', beverage: 'wine'}carb = foods.carbconsole.log carb# 'toast'
foods = {carb: 'toast', fat: 'cheese', beverage: 'wine'}carb = foodsconsole.log carb# {carb: 'toast', fat: 'cheese', beverage: 'wine'}
foods = {carb: 'toast', fat: 'cheese', beverage: 'wine'}{carb} = foodsconsole.log carb# 'toast'
foods = {carb: 'toast', fat: 'cheese', beverage: 'wine'}{carb, fat, beverage} = foodsconsole.log carb, fat, beverage# 'toast cheese wine'
foods = {carb: 'toast', fat: 'cheese', beverage: ['wine', 'coffee']}{carb, fat, beverage:[firstBev, lastBev]} = foodsconsole.log carb, fat, firstBev, lastBev# 'toast cheese wine coffee'

for(var i = 1; i <= 10; i++) {log(i);}// The same for loop we've had for 40 years
for var i = 1; i <= 10; i++log i ;
for i = 1 i <= 10 i++log i
for i = 1 <= 10log i
for i [1..10]log i
for i in [1..10]log i
for i in [1..10]log i
for(var i = 1; i <= 10; i++) {log(i);}
for i in [1..10]log i
foods = ['toast', 'cheese', 'wine']for food in foodseat food
foods = ['toast', 'cheese', 'wine']for food in foodseat food
foods = ['toast', 'cheese', 'wine']eat food for food in foods
foods = ['toast', 'cheese', 'wine']eat food for food in foods
foods = ['toast', 'cheese', 'wine']eat food for food in foods
foods = ['toast', 'cheese', 'wine']eat food for food in foods when food isnt 'wine'
foods = ['toast', 'cheese', 'wine']eat food for food in foods when food isnt 'wine'
foods = ['toast', 'cheese', 'wine']aFood = food for food in foods when food isnt 'wine'# ?
foods = ['toast', 'cheese', 'wine']aFood = food for food in foods when food isnt 'wine'# aFood = 'cheese'
foods = ['toast', 'cheese', 'wine']aFood = (food for food in foods when food isnt 'wine')# ?
foods = ['toast', 'cheese', 'wine']aFood = (food for food in foods when food isnt 'wine')# aFood = ['toast', 'cheese']
