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 7092427
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T08:18:43+00:00 2026-05-28T08:18:43+00:00

Assign object literal properties var foo = { bar : ‘hello’}; Ternary var cats

  • 0
  1. Assign object literal properties var foo = { bar : 'hello'};
  2. Ternary var cats = happy ? "yes" : "no";
  3. Label a statement outer_loop: for(i=0; i<3; i++)
  4. What else?

I’m poking through a sharepoint 2010 file and I keep running into this syntax

someFunction: ;

For instance, there is a file where the following function is declared near the top:

function ULSqvN() {
    var o = new Object;
    o.ULSTeamName = "SharePoint Portal Server";
    o.ULSFileName = "SocialData.js";
    return o;
}

and then later in the file we find the following

PageUrlNormalizer = function () {
    ULSqvN: ; //<---------------- This guy here --------------------------
    try {
        this._url = _normalizedPageUrlForSocialItem
    } catch (a) {
        this._url = ""
    }
};

What is this doing?

jsFiddle with full file. This same ULSqvN: ; occurs 47 times in the file.

edit: Added full code.

PS: Consensus seems to be that the sharepoint use of colon is “not actual javascript, possibly used as a marker for some external purpose”. The browser sees it as a vestigial label and so causes no errors. Thanks for all the replies, I have left the actual uses at the top so that the question contains the appropriate answers. question about same code

  • 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-28T08:18:44+00:00Added an answer on May 28, 2026 at 8:18 am

    It has no purpose javascript-wise (since in javascript you would only label something that you can continue or break), it might be used as a some kind of comment or marker for some parsing script. At worst it’s just dead code with no purpose whatsoever.

    Edit: looks like sharepoint uses it for some diagnostic information: What does this Javascript code do?

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

Sidebar

Related Questions

Hello (Sorry for my bad English) Is it bad practice to assign object to
I have a simple object that allows you to assign three properties (x,y,z) (lets
I'm using eval to assign dynamic object's properties. property_name_1 = property1; property_name_2 = property2;
In Perl, it's often nice to be able to assign an object, but specify
Suppose you create a generic Object variable and assign it to a specific instance.
I want to assign a class attribute via a string object - but how?
How do i dynamically assign a name to a php object? for example how
Is it bad javascript practice to not assign a newly created object to a
I have an object with a string[] property. When I assign this as the
In a WPF app, is there a object I can assign to FileSystemWatcher.SynchronizingObject? I

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.