Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Which JS standard in SDK

ANSWERED

Hi, maybe a stupid question... but could anybody tell me which JS standard the fitbit SDK is based on?

Best Answer
0 Votes
1 BEST ANSWER

Accepted Solutions

The watch runs ECMAScript 5.1, but with various extensions (mainly, I think, related to class and async).

I suspect that the companion runs within a WebView component which is maintained by the operating system, so it may be able to run more up-to-date code.

The SDK itself uses whatever version of node.js you've installed.

Peter McLennan
Gondwana Software

View best answer in original post

Best Answer
2 REPLIES 2

The watch runs ECMAScript 5.1, but with various extensions (mainly, I think, related to class and async).

I suspect that the companion runs within a WebView component which is maintained by the operating system, so it may be able to run more up-to-date code.

The SDK itself uses whatever version of node.js you've installed.

Peter McLennan
Gondwana Software
Best Answer

I think I recall reading that Fitbit OS uses "JerryScript" but I'm not sure if that's still the case. It is indeed based on ECMAScript 5.1

 

https://jerryscript.net/

Best Answer