The Math floor() static method always rounds down and returns the largest integer less than or equal to a given number.

    
    console.log(Math.floor(5.95));
    // 5

    console.log(Math.floor(5.05));
    // 5

    console.log(Math.floor(5));
    // 5

    console.log(Math.floor(-5.05));
    // -6