Jump to content

Talk:JavaScript

Page contents not supported in other languages.
From Simple English Wikipedia, the free encyclopedia
Revision as of 17:04, 23 November 2018 by 94.212.249.212 (talk) (Where is sayBye()?: new section)

This page has links that go out not to where they say they do. — Preceding unsigned comment added by Marcotuts (talkcontribs) 15:15, February 10, 2009 (UTC)

Which ones? πr2 06:39, 28 December 2011 (UTC)[reply]

Where is sayBye()?

At this moment, the following code example is in the article:

function sayHi() {
    alert("hi!");
}

sayHi = function() {
    alert("Bye!");
}

sayBye();

Wouldn’t this result in “ReferenceError: sayBye is not defined”?