In JavaScript, functions are first-class objects
// Function declaration
function greet(name) {
return "Hello, " + name + "!";
}
// Assigning a function to a variable
var sayHello = greet;
// Using the function through the variable
console.log(sayHello("Tom")); // Output: Hello, Tom!
// Passing a function as an argument to another function
function executeFunction(func) {
return func("Jerry");
}
console.log(executeFunction(greet)); // Output: Hello, Jerry!
// Returning a function from another function
function createGreetingFunction() {
return function(name) {
return "Hola, " + name + "!";
};
}
var spanishGreet = createGreetingFunction();
console.log(spanishGreet("Xavier")); // Output: Hola, Xavier!
HTML CSS JS Tutorial
W3schools.com HTML Tutorial
https://www.w3schools.com/html/default.asp
W3schools.com CSS Tutorial
https://www.w3schools.com/css/default.asp
W3schools.com JS Tutorial
https://www.w3schools.com/js/default.asp
생활코딩 동영상 HTML Tutorial
https://opentutorials.org/course/2039
생활코딩 동영상 CSS Tutorial
https://opentutorials.org/course/2418
생활코딩 동영상 JS Tutorial
https://opentutorials.org/module/532
lab1
lab1 due by 3/18
lecture2
lecture2
lab0
lab0 due by 3/11
2024년 웹 개발을 위한 최고의 웹 백엔드 프레임워크 10가지
2024에 가장 핫한 프론트엔드 프레임워크 순위는?
10 Popular Web Frameworks for Web App Development
lecture1
lecture1
aj2-lecture1