# Solved: About syntax errors and good debugging practices

**URL:** <https://discourse.nodered.org/t/solved-about-syntax-errors-and-good-debugging-practices/28497>\
**Category:** General\
**Created:** [17 June 2020 21:17 UTC](https://discourse.nodered.org/t/solved-about-syntax-errors-and-good-debugging-practices/28497 "2020-06-17T21:17:27Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![BartButenaers](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bartbutenaers/32/10476_2.png) [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Post date:** [17 June 2020 21:42 UTC](https://discourse.nodered.org/t/solved-about-syntax-errors-and-good-debugging-practices/28497/2 "2020-06-17T21:42:00Z")

</div>

Hi Özgür,

Welcome to this forum!  
When I paste the javascript code of your .html file in [jshint.com](http://jshint.com), then you see this:

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/c/6/c6e1f5d39e11e7bfd4f431b4b7d8f37fe8622a80.png)

So when I follow the directions on the right pane, you should need to change it to this:

```auto
				var newConfigJSON = {
                	PORT_COUNT: $("#node-input-portCount").val(),
                    LATCH_PIN: $("#node-input-latchPin").val(),
                    LATCH_DELAY: $("#node-input-latchDelay").val(),
                    SPEED: $("#node-input-speed").val(),
          LOOP_DELAY_US: $("#node-input-loopDelayUs").val() }
                node.log("testtttt");

```

Then the syntax errors are solved.  
Bart

---

_[View the full topic](https://discourse.nodered.org/t/solved-about-syntax-errors-and-good-debugging-practices/28497)._
