tableau javascript code example
Example 1: tableau javascript
var années = [1950, 1960, 1970, 1980, 1990, 2000, 2010];
console.log(années.0);
console.log(années[0]);
Example 2: tableau javascript
fruits.push('Mango');
var pos = fruits.indexOf('Banana');
Example 3: tableau javascript
var vegetables = ['Cabbage', 'Turnip', 'Radish', 'Carrot'];
console.log(vegetables);
var pos = 1, n = 2;
var removedItems = vegetables.splice(pos, n);
console.log(vegetables);
console.log(removedItems);
Example 4: tableau javascript
var promise = {
'var' : 'text',
'array': [1, 2, 3, 4]
};
console.log(promise['var']);
Example 5: tableau javascript
console.log(années["2"] != années["02"]);
Example 6: tableau javascript
console.log(arr.0);
Example 7: tableau javascript
renderer.3d.setTexture(model, "personnage.png");
renderer["3d"].setTexture(model, "personnage.png");
Example 8: tableau javascript
var shallowCopy = fruits.slice();
Example 9: tableau javascript
var removedItem = fruits.splice(pos, 1);
Example 10: tableau javascript
var newLength = fruits.unshift('Strawberry')