JS-Test Frage 1

by shapeshifta

JavaScript

//Welches Ergebnis erscheint in der Konsole?
var foo = 'hello';

(function() {
  var foo = foo || 'world';
  console.log(foo);
})();