func1 = () => {
document.write("1. 함수가 실행되었습니다.<br>");
}
func1()
let func2 = () => {
document.write("2. 함수가 실행되었습니다<br>");
}
func2();
let func3 = () => {
let str = "3. 함수가 실행되었습니다.<br>";
return str;
}
let result = func3();
document.write(result);
let func4 = (str) =>{
return str;
}
let result2 = func4("4. 함수가 실행되었습니다.<br>");
document.write(result2);
let func5 = str =>{
return str;
}
let result3 = func5("5. 함수가 실행되었습니다.<br>");
document.write(result3);
let func6 = str => str
let result4 = func6("6. 함수가 실행되었습니다.<br>");
document.write(result4);