1function getFullName() {
2 return getName() + ' ' + getLastName();
3 function getName() {
4 return 'William';
5 }
6 function getLastName() {
7 return 'Wallace';
8 }
9}
10
11console.log(getFullName());
12//William Wallace
13console.log(typeof getFullName);
14//function
15console.log(typeof getName);
16//undefined
17console.log(typeof getLastName);
18//undefined