Skip to content
Why am I Getting an Illegal Signature Function Call Within JavaScript?
Profile icon
[deleted]

Once I call my function called "main," from /script.js, I get an error, why?
The code seems perfectly valid, in every single way.

You are viewing a single comment. View All
Answered by fuzzyastrocat [earned 5 cycles]
View Answer
Profile icon
Coder100

I don't see any error...

Profile icon
[deleted]

@Coder100 Umm... that's not good, what browser?

Profile icon
Coder100
Profile icon
Coder100

I think it got resolved, I don't see anything wrong @JadenGarcia

Profile icon
[deleted]

@Coder100 Something tells me the code isn't running at all then :/

Profile icon
[deleted]

@Coder100 It definitely isn't working for me, the writer of the code, so... I can't quite say the same.
Does it log anything into the console?

Profile icon
Coder100
Profile icon
Coder100
Profile icon
Coder100

but why are you making them alert please don't @JadenGarcia

Profile icon
[deleted]

@Coder100 I just checked my source, and my math seems weirdly wrong... I think I'll recompile it later today and fix the file so it'll work on other browsers.

Profile icon
[deleted]

@Coder100 Okay okay, I hate it too and normally don't, but I'm on an administered computer that disables access to the browser console, so it's the only way I can read the errors at all.

Profile icon
Coder100

@JadenGarcia oh ok, make sure to also add the line number too