Tutorial by Examples

NativeScript’s global console variable lets you print values to your terminal for debugging. The simplest usage is passing a value to the console.log() function: console.log("hello world"); The console object has several other methods, including dump(), trace(), assert() and more. // ...
NativeScript's global timer variable lets you set timeouts and intervals for asynchronous delayed function calls. Importing var timer = require("timer") Timeouts var callback = function(){ console.log("I will be executed once after 500ms"); } var timeoutId = timer.se...

Page 1 of 1