Raketentester: Passing a Blob

Beitrag lesen

Source:

const aBlob = 'bar';
aBlob.foo =  'tok';

console.log(JSON.stringify(aBlob));
console.log(JSON.stringify(aBlob.foo));

Test:

/tmp$ node test.js 
"bar"
undefined

Ob ich ich aBlob mit const, var oder nicht deklariere ist egal.

Jetzt bin ich nicht so der JS-Guru. Aber könnte es sein, dass @Michael_K das so ähnlich macht?