Is this a naming convention or a function declaration

Viewed 63

I am learning javascript and now started with objects and basic functions. I came across this type of code and was wondering what exactly is this

var stringFunction = function(){};

stringFunction.test1 = function(){
  console.log("Test 1");
}

does test1 is a part of stringFunction or just a naming convention.Thanks in advance

3 Answers
Related