I came across a code snippet in JS
globe =
{
country : 'USA',
continent : 'America'
}
Using the variable declared above by:
alert(globe.country);
Questions:
- Is this a JS class with 2 members?
- Why is the var keyword not used when declaring globe?
- If it's a class, can I have member functions as well?
Thanks