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.
// ...