A small, valid function
- JavaScript code
- function add(a, b) { return a + b; }
Result Result: No syntax problems found
Problems: 0
Lines: 3
Bracket pairs matched: 2
Strings and templates: 0
Comments: 0
Regex literals: 0
- Scanned 38 characters across 3 lines, skipping comments and the inside of strings, templates and regular expressions.
- Matched 2 bracket pairs; 0 left open at the end.
- Every string, comment and bracket is closed.
The parameter list and the body each open and close once, so two bracket pairs match and nothing is reported.