Question: I have an object make = {};
I created object methods ( make.a(), make.h1() ) where each method creates a tag element

I created a JSFiddle of what I did: [here](http://jsfiddle.net/cruzj/hpep8rfj/)

I want to create many tag elements like that.

Is there any way to avoid repeating 

```
    return document.createElement('tagName');

```

each time?

Answer: 
Recursion is only needed when there is more then one element to process.
If there is one or zero elements then return.
your `mymestry` function seems to multiple `n` and `m`, and of course you could start from 1 instead of two and change your function to:

```
public int mymestry (int n, int m)
{
    if(n==0)
        return 0;
    return m + mymestry(n-1, m);
}

```

but the one who wrote this code, consider `m*1` a trivial multiple and returns its value instead of calculating it.