var list javascript code example Example: tableau javascript var fruits = ['Apple', 'Banana']; console.log(fruits.length); // 2