Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > Web Development
You last visited: Today at 19:02

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



SyntaxError after parameter list

Discussion on SyntaxError after parameter list within the Web Development forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Dec 2022
Posts: 14
Received Thanks: 0
SyntaxError after parameter list

I'm attempting to debug my code, but I keep receiving syntax errors that I don't understand.
Code:
function greetUser(name) {
  console.log("Hello " + name);
}

greetUser("John")
When I execute this code, I get the following error: "SyntaxError: missing) after parameter list".

I double-checked my code and couldn't discover any missing parenthesis. I'm not sure what's creating the problem or how to fix it. This error message does not provide me with any precise information about where the error is occurring in my code, making it impossible to discover and resolve the issue.

I tried searching for similar difficulties online and discovered this , but I'm still unable to locate the cause of the error. I've gone through my code several times. It's irritating since I can't move forward with my project until this issue is rectified. I need to correct this syntax mistake so that I may proceed with my coding responsibilities.
TonyFinch09 is offline  
Old 11/04/2025, 19:21   #2
 
Butterbier's Avatar
 
elite*gold: 260
Join Date: Jul 2011
Posts: 249
Received Thanks: 22
If you pasted this into an HTML file directly (outside of <script> tags), JavaScript will treat it as HTML and throw syntax errors.

<script>
function greetUser(name) {
console.log("Hello " + name);
}

greetUser("John");
</script>
Butterbier is offline  
Thanks
1 User
Old 11/14/2025, 13:26   #3
dotCom
 
Devsome's Avatar
 
elite*gold: 9842
The Black Market: 107/0/0
Join Date: Mar 2009
Posts: 16,840
Received Thanks: 4,672
Quote:
Originally Posted by Butterbier View Post
If you pasted this into an HTML file directly (outside of <script> tags), JavaScript will treat it as HTML and throw syntax errors.

<script>
function greetUser(name) {
console.log("Hello " + name);
}

greetUser("John");
</script>
Even if you wanted to help
Quote:
27.02.2023, 10:20
Devsome is offline  
Reply


Similar Threads Similar Threads
Brauche Hilfe! Javascript error: SyntaxError: Unexpected end of JSON input
11/05/2016 - Trading - 3 Replies
x
exceptions.SyntaxError>:EOL?
01/02/2015 - Metin2 Private Server - 0 Replies
hat sich erledigt habs hin bekommen ;-P
[LIST] WarRock Privat Server List! [LIST]
07/27/2013 - WarRock - 46 Replies
http://archiv.so/images/2013/03/01/bQaXx.png Hallo elitepvpers Community! Da es in letzter Zeit viele unnötige Threads, mit Fragen zu guten Privat Servern gab, möchte ich es Neulingen (Newbies) etwas erleichern! Und das ganze soll durch diese Liste an mir bekannten WarRock P-Servern geschehen. Sollten euch noch weitere Server bekannt sein, schreibt den Thread-Link & Namen als Kommentar, damit ich diesen Server eventueller Weise auch noch rein editieren kann.
[HILFE]Multiclient SyntaxError
01/23/2013 - Metin2 Private Server - 0 Replies
Ich muss sagen ich bin noch ein ziemlicher Anfänger und ein Problem mit dem starten des Client. :confused: Also habe mir den Multiclient V2 by Marcoly gedownloadet und dazu noch SF von daroo.Dann habe ich halt die root.eix entpackt und bin auf serverinfo.py gegangen bei IgorGlock_serverinfo_Generator habe ich bei beiden ports 13001 gemacht.Nun habe ich meine Hamachi IP eingegben und auf ersetzen gedrückt.Als leztes habe ich da wo ''name'' stand irgend einen Namen eingegeben die restlichen 3...



All times are GMT +1. The time now is 19:03.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.