My Javascript gives syntax error in Chrome and Safari but does not give error in Firefox?

4

These are my files:

    <script type="text/javascript" src="js/jquery-1.9.1.js"></script>
    <script type="text/javascript" src="js/jquery-ui.js"></script>
    <script type="text/javascript" src="js/bootstrap.min.js"></script>
    <script type="text/javascript" src="js/bootstrap-collapse.js"></script>
    <script type="text/javascript" src="js/bootstrap-tab.js"></script>
    <script type="text/javascript" src="js/jquery.mCustomScrollbar.concat.min.js"></script>
    <script type="text/javascript" src="js/custom.js"></script>

I have the following problem:

In Mozilla Firefox works perfectly. Chrome and Safari are not running at all. Error:

  

Uncaught SyntaxError: Unexpected token > custom.js: 401

Has this problem occurred to anyone yet?

    
asked by anonymous 04.02.2014 / 20:22

1 answer

4

I found the error.

In line 401 of my custom.js file I made a condition with the logical operator "Greater or Equal" like this:

=>

The correct one is as follows:

>=

But I found it strange that in Firefox it ran normally.

    
04.02.2014 / 20:32