<aside> 💡 Notion Tip: Tag pages to let collaborators know what they can expect to use the page for. You can add one or many tags to any page in a wiki.

</aside>

varibale immutable atau tidak bisa di reassign

bisa diubah menggunakan fungsi aritmatika

IMMUTABLE / cant reassign /muted variable concept

//CONSTANTA
const THREE_HOURS_IN_SECONDS: u32 = 60 * 60 * 3;
    // THREE_HOURS_IN_SECONDS=22;
    println!("Constanta {THREE_HOURS_IN_SECONDS}");
    // SHADOWING varibale
    let x = 5;

    let x = x + 1;

    {
        let x = x * 2;
        // x=4;
        println!("The value of x in the inner scope is: {x}");
    }

    println!("The value of x is: {x}");