Javascript reserved keyword

I ran into a weird problem with Safari today. I named one of my function name ‘goto’ and Safari was complaining about javascript parsing issue while it worked fine on all other browsers. Beware of the reserved keywords even when they are not being used. ‘goto’ is actually reserved only for future use. This one is not as obvious as ‘int’, ‘integer’ etc. Take a look at the documentation at Mozilla site for detailed list of reserved keywords.

There’s other ones like :
abstract, debugger, transient, volatile, implements, protected, synchronized


Leave a Comment




HK Web & Tech Meetup Index

HK Ruby on Rails User Group

My Tumblr blog

Categories



    Friends blog


    Read Write Sleep
    雨樂文康匯
    852 Signal
    Enjoy Rails
    Gang Lu
    Web Wednesday

    RoRCraft

    I am the founder of RoRCraft Ltd., a web consultancy firm that develops usable and speedy web applications for our clients.


    Based in Sydney, I travel to Hong Kong and HangZhou China to meet with my team regularly. I love exploring new technologies and business ideas that helps making our world a better place.



    An online video conversion tool. It allows everyone to freely convert their videos for ipods, mobiles and flash.


    Rails Job


    Job board for Ruby and Rails developers.


    View Rex Chung's profile on LinkedIn

    www.flickr.com

    LATEST RUBY JOBS

    Embed this on your site?