Made with KolourPaint and screenshots from Kate (with the GitHub theme).

  • masterspace@lemmy.ca
    link
    fedilink
    English
    arrow-up
    31
    arrow-down
    1
    ·
    1 day ago

    Yeah, it’s explicitly distinct from const a: String which says it won’t change, and var a: String, which means this is legacy code that needs fixing.

      • Hotzilla@sopuli.xyz
        link
        fedilink
        arrow-up
        3
        ·
        edit-2
        18 hours ago

        True, but var and let are not same in js, so there is three.

        if(true) {

        var a = "dumdum"

        }

        console.log(a)

        Is valid and functioning javascript. With let it is not.