Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (11:46:33 PM) johannes@weltraumpflege.org/SPITFIRE: Hallo und herzlich willkommen
- (11:46:45 PM) johannes@weltraumpflege.org/SPITFIRE: zurück bei einer neuen Ausgabe von Javascript der Hurensohn
- (11:47:33 PM) johannes@weltraumpflege.org/SPITFIRE: Und zwar geht es heute um ein Snippet, das uns der Johannes F. aus A. eingesandt hat, mit dem Vermerk dass er drei Stunden auf den Debug geschaut hat, bis er gemerkt hat, was abging: https://jsfiddle.net/6v9hxzL7/3/
- (11:48:56 PM) johannes@weltraumpflege.org/SPITFIRE: Wie sie sehen, sollte die Funktion "dreibisfuenf" genau 5 mal ausgeführt werden.
- (11:49:03 PM) johannes@weltraumpflege.org/SPITFIRE: Ausgeführt wird sie aber nur einmal.
- (11:49:06 PM) johannes@weltraumpflege.org/SPITFIRE: Warum?
- (11:49:17 PM) johannes@weltraumpflege.org/SPITFIRE: Ja, das hat sich der Johannes auch gefragt.
- (11:50:02 PM) johannes@weltraumpflege.org/SPITFIRE: Stellt sich raus, dass sich in javaScript anscheinend das Scope von Variablen auch in Funktionsaufrufe rein überträgt.
- (11:50:42 PM) johannes@weltraumpflege.org/SPITFIRE: Danke für's zuschauen
- (11:50:56 PM) johannes@weltraumpflege.org/SPITFIRE: und wir hoffen, dass sie auch beim nächsten mal wieder dabei sind
- (11:51:05 PM) johannes@weltraumpflege.org/SPITFIRE: wenn es heißt JAVASCRIPT DER HURENSOHN
- (11:51:27 PM) johannes@weltraumpflege.org/SPITFIRE: *abspann rollt*
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement