system.mtr
native print()
native getProperty()
native getEnv()
native sleep()
export [print, getProperty, getEnv, sleep] as system
The print method will write a list of values, separated by a space, to the standard output.
print("Value:", 5)
getProperty
The getProperty method will return the value of a system property.
getProperty("java.version")
getEnv
The getEnv method will return the value of an environment variable.
getEnv("JAVA_HOME")
sleep
The sleep method will pause the execution of the program for a given amount of milliseconds. Refresh this page and watch the box below to see the effect.
sleep(500);;;sleep(5000)