001function joinNames(fn, ln)
002{
003 let fullname = fn + ' ' + ln;
004 return fullname;
005}
006
007let student1 = joinNames('Wai','Sung');
008let student2 = joinNames('Rory','Mclaren');
009let student3 = joinNames('Hollie','Fitzpatrick');
010
011//console.log(fullname); // not defined as only exists in function
012
013console.log(student1);
014console.log(student2);
015console.log(student3);
016
017const joinWords = (str1,str2) => { return str1 +' '+ str2};
018
019let tutor = joinWords('Toby', 'Brodie');
020console.log(tutor);