Get started with jslint CDN
UNLICENSE licensed
JS coding standard tool: JSLint identifies potential errors and inconsistencies.
Tags:- coverage-report
- javascript
- jslint
- zero-config
- zero-dependency
Stable version
Copied!
How to start using jslint CDN
<!DOCTYPE html>
<html>
<head>
<title>Get started with jslint CDN - cdnhub.io</title>
<script src="https://cdn.cdnhub.io/jslint/2023.10.24/jslint.mjs"></script>
</head>
<body>
<script type="text/javascript">
// Your JavaScript code goes here
const add = (a, b) => a + b;
const result = add(1, 2);
console.log(result);
</script>
<script>
// Validate the script using JSLint
jslint.parse('const add = (a, b) => a + b; const result = add(1, 2); console.log(result);', (err) => {
if (err) {
console.error('JSLint errors:', err);
} else {
console.log('No JSLint errors found.');
}
});
</script>
</body>
</html>
Copied!