JavaScript

JavaScript

By DeepSource

Syntax errorJS-0833

Bug risk

Found non-compliant syntax. Confirm that there are no syntax errors before committing your code to a version control system.

Examples

Bad practice

// missing `=>` after arrow function parameters
const mult = (x, y) {
  return x * y 
}

Recommended

const mult = (x, y) => {
  return x * y 
}