new tasks
This commit is contained in:
parent
2a4d27cea0
commit
80737d5a6a
1194 changed files with 15353 additions and 1 deletions
5
Task/Collections/JavaScript/collections-2.js
Normal file
5
Task/Collections/JavaScript/collections-2.js
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
var map = {};
|
||||
map['foo'] = 'xyz'; //equivalent to: map.foo = 'xyz';
|
||||
map['bar'] = new MyClass; //equivalent to: map.bar = new MyClass;
|
||||
map['1x; ~~:-b'] = 'text'; //no equivalent
|
||||
alert( map['1x; ~~:-b'] );
|
||||
5
Task/Collections/JavaScript/collections.js
Normal file
5
Task/Collections/JavaScript/collections.js
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
var array = [];
|
||||
array.push('abc');
|
||||
array.push(123);
|
||||
array.push(new MyClass);
|
||||
alert( array[2] );
|
||||
Loading…
Add table
Add a link
Reference in a new issue