hi guys i'm very noobs on javascript

how do you call a function inside a function?
can you show me a simple but complete snippet of codes?

thank you very much.