return vs console.log

    function doMath(a, b) {
        return a + b;
    }
    
    function logMath(a,b) {
        console.log(a + b);
    }
    
    let a = doMath(1,2); // a is now 3
    let b = logMath(1,2); // b is undefined (no value)

    16 / 24