Quiz on AI Interviews Prep Live Training Corporate Training

Javascript Functions.

Functions in JavaScript are reusable blocks of code designed to perform specific tasks. They allow you to organize, reuse, and modularize code. It can take inputs, perform actions, and return outputs.
    
    function sum(a, b) {
    
        return a + b;
    
    }
    
    console.log(sum(6, 9));