Be a Supporter!

Weird behavior in JavaScript

  • 587 Views
  • 2 Replies
New Topic Respond to this Topic
Hidden
Hidden
  • Member since: Sep. 30, 2001
  • Offline.
Forum Stats
Member
Level 07
Blank Slate
Weird behavior in JavaScript 2002-05-28 00:36:50 Reply

In a script I was writing I could not get it to work if I left the 'n' in the name of a function 'getExpression'. If I dropped it or changed the 'n' to a different letter, it worked. It was spelled exactly the same where I defined it and where I was trying to call it.

Has anyone else had something like this happen?

Weird behavior in JavaScript

liljim
liljim
  • Member since: Dec. 16, 1999
  • Offline.
Forum Stats
Staff
Level 28
Blank Slate
Response to Weird behavior in JavaScript 2002-05-28 18:44:07 Reply

At 5/28/02 12:36 AM, Hidden wrote: In a script I was writing I could not get it to work if I left the 'n' in the name of a function 'getExpression'. If I dropped it or changed the 'n' to a different letter, it worked. It was spelled exactly the same where I defined it and where I was trying to call it.

Has anyone else had something like this happen?

Is this a function you were writing yourself? If so, here's why it's failing.

Hidden
Hidden
  • Member since: Sep. 30, 2001
  • Offline.
Forum Stats
Member
Level 07
Blank Slate
Response to Weird behavior in JavaScript 2002-06-01 22:06:13 Reply

At 5/28/02 06:44 PM, liljim wrote:
At 5/28/02 12:36 AM, Hidden wrote: In a script I was writing I could not get it to work if I left the 'n' in the name of a function 'getExpression'. If I dropped it or changed the 'n' to a different letter, it worked. It was spelled exactly the same where I defined it and where I was trying to call it.

Has anyone else had something like this happen?
Is this a function you were writing yourself? If so, here's why it's failing.

Oh, ok. Thanks!

Weird behavior in JavaScript