  :

1.    JavaScript: //   /* */

2.   .




3.    : 
				- 1, 20, 4000; 
	  	- 3.14, .1
				- "stroka"
			- null, true, false
			- my_var




4. .          ,             . :

local myvar
local _myvar
local _my_var1

    .

[ ]	[ ]	[,   ]

local			 	 		
static			 	
global						
public						



: public             .        .

   :
	-       ,    .
	-       (.. local  static),        .
	-      (global  public),      . !    local  static         .

      .





5.  ";"      .       -   .




6. :

	
	1	  , function(), (), [], args
	2	*(), ++, --
	3	**(  )
	4	~
	5	-( )
	6	*, /, %
	7	+, -
	8	<<, >>
	9	&
	10	^
	11	|
	12	<, <=, >, >=, ==, !=
	13	not
	14	and
	15	or
	16	len, typeof
	17	=






7.   (   ):


	const		local		static		global		public
	def		end		if		else		select		
	case		for		while		do		repeat
	break		continue	return		args		len		
	typeof		not		and		or









8. .        .          , :
	
	const a=1
	const b=a

    -    .   null, true, false, pi  ..











9.     def <_>(<>).           ,   .       .

    :

1.   ,        ,    .
2.    

                .









10. .      . :

	array=[1, 2, 3] //     1, 2, 3

            :

	a=array[0]	//a=1
	b=array[1]	//b=2

       len:

	length=len array	//length=3

       ,         len. (: len "stroka")



12.   .           "*".         (   )   .

:
	local r, g, b
	get_color(*r, *g, *b)

	local color=[*r, *g, *b]