kalovski

Untitled

Apr 25th, 2016
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Document</title>
  6. </head>
  7. <body>
  8. <script src="jshint.js"> </script>
  9. <script> /* Array containing the JavaScript code to be analysed */
  10. var source = [
  11. 'var obj = {}',
  12. 'foo();'
  13. ];
  14. /* Linting options (optional) */
  15. var options = {
  16. undef: true,
  17. unused: true
  18. };
  19. /* API is invoked */
  20. JSHINT(source);
  21. /* The tool's analysis output is written on the page after the JSON object -> String conversion */
  22. document.write(JSON.stringify(JSHINT.data())); </script>
  23. </body>
  24. </html>
Advertisement
Add Comment
Please, Sign In to add comment