Dev study and notes

[dart] #10 #2.2 String Interpolation (04:30) 본문

studyLog

[dart] #10 #2.2 String Interpolation (04:30)

devlunch4 2023. 4. 29. 00:00
반응형
void main() {
    var name = 'lunch';
    var thisYear = 2023;
    var greeting = '''Hello, Everyone, 
    My name is $name, Nice to meet you.
    \'Next\' year is ${thisYear + 1}.''';
    print(greeting);
}
반응형

'studyLog' 카테고리의 다른 글

[dart] #12 #2.4 Maps (05:38)  (0) 2023.05.02
[dart] #11 #2.3 Collection For (02:27)  (0) 2023.04.29
[dart] #9 #2.1 Lists (04:06)  (0) 2023.04.28
[dart] #8 #2.0 Basic Data Types (02:12)  (0) 2023.04.28
[dart] #7 #1.6 Constant Variables (03:21)  (0) 2023.04.28
Comments