We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 74599b6 commit b081c7dCopy full SHA for b081c7d
examples/anonymous.ls
@@ -0,0 +1,12 @@
1
+func ExecuteCallback(callback) {
2
+ print "Inside function about to execute callback.";
3
+ callback();
4
+}
5
+
6
+var callback = func () {
7
+ print "hello";
8
+};
9
10
+ExecuteCallback(func () {
11
+ print "Inside of the anonymous function.";
12
+});
examples/getters.ls
@@ -0,0 +1,21 @@
+class GetterDemo {
+ constructor(name) {
+ this._name = name;
+ }
+ // Instance getter associated only with instances.
+ name {
+ return this._name;
+ // Static getter not associated to any instance.
+ static type {
13
+ return "Getter Demo";
14
15
16
17
+// Access static getter.
18
+print GetterDemo.type;
19
20
+// Access instance getter.
21
+print GetterDemo("Erik").name;
0 commit comments