coba.js 663 Bytes
var a = {};
a['1'] = 'satu';
a[3] = 'tiga';
a[5] = 'lima';
a[10] = 'sepuluh';
console.log(a);

delete a[10];
console.log(a);

if (a[10] === undefined) {
    console.log('a[10] is undefined');
}

if (a[10]) {
    console.log('a[10] is true');
}

console.log("test a[10] == 'sepuluh'");
if (a[10] == 'sepuluh') {
    console.log("a[10] == 'sepuluh'");
}
console.log("end of test a[10] == 'sepuluh'");

console.log("test delete a[20]");
delete a[20];
console.log("end of test delete a[20]");

b = '00';
console.log(b);
if (b) {
    console.log('b is true');
}

if ('68' == 68) {
    console.log("'68' == 68");
}

if ('68' === 68) {
    console.log("'68' === 68");
}