SmileBASIC is pretty close to JS, but many syntax differences exist like - Functions are declared with [COMMON] DEF FUNCNAME[$/%/#](args...) [OUT RET1...] and END, instead of function [window.]funcname(args...){ and } - To declare a variable, you need to use # (real, or with decimals), % (integer, or no decimals) or $ (string). If you don't specify, real (#) is used - Check smilebasic.com for more