Dev study and notes

[dart] #7 #1.6 Constant Variables (03:21) 본문

studyLog

[dart] #7 #1.6 Constant Variables (03:21)

devlunch4 2023. 4. 28. 23:49
반응형
void main() {
    // 'Consts' in JavaScript or TypeScript
    // are similar to 'final' in Dart.

    const name = 'lunch';
    print(name);
    name = 'change'; // Error
}
반응형
Comments