📅  最后修改于: 2023-12-03 15:16:04.128000             🧑  作者: Mango
JavaScript is a high-level, dynamic, and interpreted programming language that is commonly used to create interactive websites and dynamic web applications. It allows developers to add behaviors and interactivity to web pages, making them more dynamic and engaging for users.
// Define a function that returns the sum of two numbers
function sum(a, b) {
return a + b;
}
// Call the sum function
var result = sum(2, 3);
// Log the result to the console
console.log(result);