Home / Javascript Tips Generated By ChatGPT / Creating Simple Functions in Javascript Define reusable code blocks with functions. Source Code function greet() { console.log('Hello, World!'); } greet(); // Calls the function