langs a-z
This commit is contained in:
parent
db842d013d
commit
d066446780
11389 changed files with 98361 additions and 1020 deletions
|
|
@ -1,14 +0,0 @@
|
|||
# Create a basic class
|
||||
class Rectangle
|
||||
# Constructor that accepts one argument
|
||||
constructor: (@width) ->
|
||||
|
||||
# An instance variable
|
||||
length: 10
|
||||
|
||||
# A method
|
||||
area: () ->
|
||||
@width * @length
|
||||
|
||||
# Instantiate the class using the new operator
|
||||
rect = new Rectangle 2
|
||||
Loading…
Add table
Add a link
Reference in a new issue