I want to know what cleanNum means in the following code. Is it the function name or does it represent something else?

```
//code snippet 1
var creditCard = {
  cleanNum : function(number){
    return number.replace(/[- ]/g,"");
  }
};

```

Q1. I do not get the meaning of cleanNum. Can you please explain what is the significance of cleanNum().

Q2. If I am using it in another function called another\_func(), how do I call the code snippet 1?

Is the below code snippet same as above?

```
//code snippet 2
function cleanNum(number){
  //sample code
}

```