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

  • Home
  • SEARCH
  • 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 8592683
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T23:48:32+00:00 2026-06-11T23:48:32+00:00

I changed my coding style from function getParams(entity) { use strict; var accountID =

  • 0

I changed my coding style from

function getParams(entity) {
    "use strict";
    var accountID = store.getItem('AccountID'),

    switch (entity) {
        case "Topic":

to

function getParams(entity) 
{

    "use strict";
    var accountID = store.getItem('AccountID'),

    switch (entity)
    {
        case "Topic":

Now I get any jslint errors such as:

Warning 6 JS Lint: Expected exactly one space between ‘)’ and ‘{‘.
Warning 9 JS Lint: Expected ‘var’ at column 9, not column 5.

I checked through the options but cannot find any option to unselect relating to line position. Also if there is one then could I add it to the top of my file?

  • 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-06-11T23:48:33+00:00Added an answer on June 11, 2026 at 11:48 pm

    In JavaScript is recommended to put opening braces on the same line for this reason:

    function foo()
    {
      return
      {
        a: 'foo'
      }
    }
    
    foo().a // error
    

    This is more an advice than a solution but impossible to explain in a comment without new lines.

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

Sidebar

Related Questions

After just been coding for about 6-9 months. I probably changed my coding style
HI people I recently changed to VIM for coding in C. I'd like to
I changed my .autotest file to use it with a Ruby-based project. After that,
I'm trying to improve my Javascript coding style and have been reading that it's
I'm brand new to the MVC coding style and i'm having trouble deciding if
EDIT: so I changed the style.display to block and some of them worked. the
So, this is a question of coding style more or less. I'm using Bean
I'm trying to incorporate some design-by-contract techniques into my coding style. Postconditions look a
My problem is, I did coding for a sprite. It should change it should
I changed my Manifest to target API 16 because of a thing with ActionBarSherlock,

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.