Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <title>Document</title>
- </head>
- <body>
- <script src="jshint.js"> </script>
- <script> /* Array containing the JavaScript code to be analysed */
- var source = [
- 'var obj = {}',
- 'foo();'
- ];
- /* Linting options (optional) */
- var options = {
- undef: true,
- unused: true
- };
- /* API is invoked */
- JSHINT(source);
- /* The tool's analysis output is written on the page after the JSON object -> String conversion */
- document.write(JSON.stringify(JSHINT.data())); </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment