Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6133719
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T17:15:52+00:00 2026-05-23T17:15:52+00:00

I am starting to learn javascriptmvc, and in code samples, I see code without

  • 0

I am starting to learn javascriptmvc, and in code samples, I see code without semicolons at the end of expressions. Does this count on automatic semicolon insertion or am I missing something? Code example below:

$.Controller("Contacts.Controller", {
        init: function(){
            this.params = new Mxui.Data();
            $("#category .list_wrapper").mxui_data_list({
                model : Contacts.Models.Category,
                show : "//contacts/views/categoryList",
                create: "//contacts/views/categoryCreate"
            }) // <------ NO SEMICOLON

            $("#location .list_wrapper").mxui_data_list({
                model : Contacts.Models.Location,
                show : "//contacts/views/categoryList",
                create: "//contacts/views/categoryCreate"
            }) // <------ NO SEMICOLON

            $("#company .list_wrapper").mxui_data_list({
                model : Contacts.Models.Company,
                show : "//contacts/views/companyList",
                create: "//contacts/views/companyCreate"
            }) // <------ NO SEMICOLON
                            // etc...
         }
      }) // <------ NO SEMICOLON
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T17:15:52+00:00Added an answer on May 23, 2026 at 5:15 pm

    Javascript can be forgiving about the lack of a semicolon in ways that other languages are not. However a semicolon is recommended where you’ve pointed them out.

    If you run the code you’ve given through JSLint, it throws up a whole stack of warnings, including complaining about those missing semicolons.

    JSLint is a tool for telling you about things in your code which may not be syntax errors but which could cause problems. It generally throws up a lot of errors, even for relatively well written code, but it is good for picking up things which you should fix.

    I would say that those code samples are poorly written because of the missing semi-colons.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Whilst starting to learn lisp, I've come across the term tail-recursive . What does
im just starting to learn flex and im trying to understand how Flex does
Just starting to learn the Java side of things, sorry if this is obvious.
i'm starting to learn ruby on rails using this guide : getting_started , i
I'm starting to learn to use Inkscape, and I'm going through this tutorial on
I am starting to learn C++ and Qt, but sometimes the simplest code that
I'm just starting to learn the C programming language. I've written this simple piece
I am only starting to learn WPF so please bear with me if this
I'm just starting to learn Rails (Rails 3 specifically), and everything I see leans
I am just starting to learn F#. In several F# coding examples I see

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.