Last active
August 29, 2015 14:17
-
-
Save Chadtech/7f64006836952ac7f587 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sayHi = -> | |
console.log 'Hi' | |
sayHello = => | |
console.log 'Hello' | |
sayHey = (someone) -> | |
console.log 'Hey ' + someone | |
sayHey 'guys' | |
# => 'Hey guys' | |
saySomething = (guy, comment) -> | |
comment guy | |
saySomething 'Henry', (toWho) -> | |
console.log 'Hey ' + toWho + ', hows it going?' | |
# => Hey Henry, hows it going? | |
setCool = (object) -> | |
object.cool = true | |
object | |
raquetBall = | |
isASport: true | |
ball: 'Raquet Ball' | |
raquetBall = setCool raquetBall | |
console.log raquetBall.cool | |
# => true | |
# ### | |
# React | |
# ### | |
React = | |
DOM: | |
p: (htmlTagProperties, children, value) -> | |
# something really complicated | |
div: (htmlTagProperties, children, value) -> | |
# something really complicated | |
img: (htmlTagProperties, children, value) -> | |
# something really complicated | |
a: (htmlTagProperties, children, value) -> | |
# something really complicated |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment