Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 18 lines (13 sloc) 0.337 kb
534782d @hectorcorrea First commit
authored
1 billTo = {}
586dee0 @hectorcorrea minor tweaks
authored
2 billTo.street = "111 Bill To St."
3 billTo.city = "Bill To City"
534782d @hectorcorrea First commit
authored
4
5 shipTo = {}
6 shipTo.street = "222 Warehouse Bldv."
d3c1743 @hectorcorrea last tweaks before PSU Web Conference
authored
7 # shipTo.city = "Ship To City"
534782d @hectorcorrea First commit
authored
8 shipTo.attn =
79827f4 @hectorcorrea switched tabs to spaces
authored
9 name: "John Doe"
10 title: "Mr."
534782d @hectorcorrea First commit
authored
11
586dee0 @hectorcorrea minor tweaks
authored
12 city = shipTo?.city ? billTo.city
13 console.log "City: #{city}"
534782d @hectorcorrea First commit
authored
14
586dee0 @hectorcorrea minor tweaks
authored
15 # attn = shipTo?.attn?.name ? "N/A"
16 # console.log "Attn: #{attn}"
534782d @hectorcorrea First commit
authored
17
Something went wrong with that request. Please try again.