Question about Theseus

40 views
Skip to first unread message

Denis Renzi

unread,
Apr 28, 2014, 3:32:38 PM4/28/14
to theseus...@googlegroups.com
Hi,
I am a beginner, I have the following code, how can I find the error in this part of javascript?
Can I use Theseus? If so, how?
Thank you!

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" 
<html>

<head>
    <title>Hexadecimal Numbers</title>

    <script type="text/javascript">
        var x = 42;
        var y = "42";
        if (x === y) {
            alert("x is equal to y with a string test.")

        }
        ele {
            alert("x is not equal to y")
        }
    </script>

</head>

<body>
    <p id="dateField">&nbsp;</p>
    <script type="text/javascript">
    </script>
</body>

</html>

Marcel Gerber

unread,
May 1, 2014, 10:42:03 AM5/1/14
to theseus...@googlegroups.com
I'm not sure Theseus will complain (but it probably won't work), but every Linter (Brackets has JSLint installed by default) should be able to find the error. Another solution would be to look into the console while you have that page open in your browser.

Denis Renzi

unread,
May 2, 2014, 1:45:46 PM5/2/14
to theseus...@googlegroups.com
I've tried using JSLint but it does not work, so in the end I went to check the code in the console on google chrome! Thanks for the help!

Tom Lieber

unread,
May 2, 2014, 1:50:07 PM5/2/14
to Denis Renzi, theseus...@googlegroups.com
Yeah, it looks like the JavaScript linter doesn’t check scripts embedded in HTML. But it finds plenty to complain about if you paste the code into a JavaScript file, including the bug in your program. :)

Inline image 2


--
You received this message because you are subscribed to the Google Groups "Theseus Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to theseus-discu...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Tom Lieber
http://AllTom.com/
http://infinite-sketchpad.com/
Reply all
Reply to author
Forward
0 new messages