const customer = { name: "Foo" }
const card = { amount: 7, product: "Bar", unitprice: 42 }
const message = `Hello ${customer.name},
want to buy ${card.amount} ${card.product} for
a total of ${card.amount * card.unitprice} bucks?`
const odds = evens.map(v =>
v + 1
)
const pairs = evens.map(v =>
({ even: v, odd: v + 1 })
)
const nums = evens.map((v, i) =>
v + i
)
$('.btn').click((event) =>{
this.sendData()
})
const addNumbers = (x, y = 7, z = 42) {
return x + y + z
}
addNumbers(1) === 50
class Shape {
constructor (id, x, y) {
this.id = id
this.move(x, y)
}
move (x, y) {
this.x = x
this.y = y
}
}