Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
15
Task/Undefined-values/Wren/undefined-values.wren
Normal file
15
Task/Undefined-values/Wren/undefined-values.wren
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
var f = Fn.new {
|
||||
System.print("'f' called.") // note no return value
|
||||
}
|
||||
|
||||
var res = f.call()
|
||||
System.print("The value returned by 'f' is %(res).")
|
||||
|
||||
var m = {} // empty map
|
||||
System.print("m[1] is %(m[1]).")
|
||||
|
||||
var u // declared but not assigned a value
|
||||
System.print("u is %(u).")
|
||||
|
||||
var v = null // explicitly assigned null
|
||||
if (!v) System.print("v is %(v).")
|
||||
Loading…
Add table
Add a link
Reference in a new issue