NativeScript uses JavaScript virtual machines to execute JavaScript commands. On Android, the NativeScript runtime uses the V8 virtual machine. On iOS, it uses the JavaScriptCore virtual machine. For more detailed information check out the blog post How NativeScript works, the Android runtime overview and the iOS runtime overview.