// 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!
lab1
lab1 due by 3/18
lecture2
lecture2
aj2-lecture2-HTML-CSS-JS
10 Popular Web Frameworks for Web App Development
https://www.geeksforgeeks.org/blogs/top-frameworks-for-web-applications/ (Last Updated : 24 Feb, 2026)
1. React 2. Django 3. Angular(Also, know as Angular JS) 4. ASP.NET 5. Flask 6.Vue.js 7. Express.js 8. Spring Boot 9. Ruby on Rails 10.Laravel
lab0
lab0 due by 3/11
lecture1
lecture1
lecture0
lecture0
