# Bug in javascript

**URL:** <https://forum.dotvvm.com/t/bug-in-javascript/356>\
**Category:** Discussion in English\
**Created:** [April 13, 2026, 10:49am UTC](https://forum.dotvvm.com/t/bug-in-javascript/356 "2026-04-13T10:49:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![daltinkurt](https://forum.dotvvm.com/user_avatar/forum.dotvvm.com/daltinkurt/32/11_2.png) [@daltinkurt](https://forum.dotvvm.com/u/daltinkurt)\
**Post date:** [April 13, 2026, 10:49am UTC](https://forum.dotvvm.com/t/bug-in-javascript/356/1 "2026-04-13T10:49:37Z")

</div>

Hi,

Compilation Status Page gives me a warning when i use ‘\<=’ check in pure javascript:

Test.dotvvm:

```auto
...
<body>
    <div class="container">
        {{value: Now}}
    </div>

<script>
    function AnyMethod() {
        var a = 10;
        var b = 20;
        if (a <= b) {
            console.log("a is less than or equal to b");
        } else {
            console.log("a is greater than b");
        }
    }
</script>

</body>
</html>

```

The warning message is as follows:

 ![ScreenShot_20260413134417](https://forum.dotvvm.com/uploads/default/original/1X/95008515f6b2a3f50d218440a5e5bbbaca9977d9.jpeg)

If I use ‘\<’ instead of '\<=", no warning is generated.

‘\<=’ seems to be crawled across the entire page. Perhaps you can prevent it from being crawled within the script block.  
Regards.

---

<div class="post-metadata">

**Author:** ![tomasherceg](https://forum.dotvvm.com/user_avatar/forum.dotvvm.com/tomasherceg/32/513_2.png) [@tomasherceg](https://forum.dotvvm.com/u/tomasherceg)\
**Post date:** [April 13, 2026, 4:09pm UTC](https://forum.dotvvm.com/t/bug-in-javascript/356/2 "2026-04-13T16:09:02Z")

</div>

I created a [GitHub issue](https://github.com/riganti/dotvvm/issues/2020)

---

<div class="post-metadata">

**Author:** ![exyi](https://forum.dotvvm.com/user_avatar/forum.dotvvm.com/exyi/32/9_2.png) [@exyi](https://forum.dotvvm.com/u/exyi)\
**Post date:** [April 13, 2026, 9:07pm UTC](https://forum.dotvvm.com/t/bug-in-javascript/356/3 "2026-04-13T21:07:15Z")

</div>

This should be resolved in version 5 (see [#1900](https://github.com/riganti/dotvvm/pull/1900)), you can try the preview version if you want to

---

<div class="post-metadata">

**Author:** ![daltinkurt](https://forum.dotvvm.com/user_avatar/forum.dotvvm.com/daltinkurt/32/11_2.png) [@daltinkurt](https://forum.dotvvm.com/u/daltinkurt)\
**Post date:** [April 14, 2026, 6:06am UTC](https://forum.dotvvm.com/t/bug-in-javascript/356/4 "2026-04-14T06:06:57Z")

</div>

Yes, you’re right. It didn’t give any warnings in the preview version.
