Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

ring add an attribute to the object

o1 = new point
addattribute(o1,"x")
addattribute(o1,"y")
addattribute(o1,"z")
see o1 {x=10 y=20 z=30}
class point
Source by ring-lang.github.io #
 
PREVIOUS NEXT
Tagged: #ring #add #attribute #object
ADD COMMENT
Topic
Name
5+2 =