uncaught syntax error unexpected identifier

 

This error occurs commonly due to missing comma mistakenly. You only need to review your code and fix syntax 

 

const foo = {  
				one: 1   // add missing comma to fix 
				two: 2
			};


// add missing comma to fix  (a,b)
function foo(a b) {  
	// some code
} 

function foo(a, b) { 

	 return a b;  // add missing comma to fix  (a,b)
 
 }

Tags:

Share:

Related posts