Protik Datta
Protik Datta

Reputation: 11

I am new to programming and I found a code which I do not know what language it is using. I think its Javascript or PHP

Limited knowledge is regretted and explanation of the code or the name of the language is appreciated a lot. Thank you!

var myNickName='-undefined-';    
if($("a#jsid-my-profile").length)   
    {
    myNickName=$("a#jsid-my-profile").attr("href").replace("/u/","");
    }

Upvotes: 1

Views: 42

Answers (2)

Amiga500
Amiga500

Reputation: 6131

Definitely Javascript and jQuery library.

I must point out strange value assignment:

var myNickName='-undefined-';  

Upvotes: 0

Aron
Aron

Reputation: 9238

Looks like JavaScript to me.

Specifically it's code using jQuery.

Upvotes: 2

Related Questions