Please sign in for access to all the free videos.
Fundamentals: 03 Functions
Functions are special objects that can be called and executed. You can define behavior and reuse it later, which opens up a lot of new concepts and power for coding.
Please login to comment
Arun Kumar Dadhwal
Jun 14, 2017
Aug 04, 2017
Hey why would I be getting an Unexpected newline error? superman = name: "Clark Kent" realName: "Kal-El" strenght = 9001 punchBatman = () -> batman.health -= this.strength batman = name: "Bruce Wayne" health: 5000 deployKryptonite = () -> superman.strength *= 0.10