I was watching a video about object literals in JS. Then the guy in the video did something like this:
var Facebook = {
name: 'Facebook',
ceo: {
firstName: "Mark",
favColor: "Blue"
},
$stock: 110
};
My question is why is there a $ sign in front of stock? Is there a special meaning? or did he just use it for naming purpose only? I entered $ in console and got something like this:
function $(selector, [startNode]) { [Command Line API] }
I understand that $ sign is used as a selector for JS libraries like JQuery, but what is it's significance in pure JS?