일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
- 딥러닝
- 쿠키런킹덤공략
- Unity
- 노마드코더
- 쿠키런킹덤
- 유니티
- 개발자
- 오블완
- 쿠키런킹덤크리스마스
- dart
- MySQL
- Spring
- 쿠킹덤공략
- HTML
- 이클립스
- 프로그래머스
- 크리스마스
- SQL
- programmers
- 티스토리챌린지
- oracle
- edwith
- Eclipse
- JavaScript
- 홀리데이익스프레스
- 쿠킹덤
- 자바스크립트
- Java
- 자바
- 웹개발
- Today
- Total
목록dart (29)
Dev study and notes
void main() { String name = 'lunch'; print(name.length); // bool alive = true; print(alive.runtimeType); // int age = 100; print(age.isNaN); // double money = 99.9; print(money.round()); // num x = 12; //In Dart num ist int and double x = 1.1; print(x.hashCode); // }
void main() { // 'Consts' in JavaScript or TypeScript // are similar to 'final' in Dart. const name = 'lunch'; print(name); name = 'change'; // Error }
void main() { late final String name; // print(name); // Error Alert // Do something, Go to API name = 'lunch'; // name = 123; // Error print(name); // Good }
void main() { final String name = 'lunch'; name = 'lunch'; // Error }
void main() { String? lunch = 'lunch'; print(lunch?.isNotEmpty); lunch = null; print(lunch?.isNotEmpty); }
void main() { String? lunch = 'lunch'; lunch = null; if (lunch != null) { lunch.isNotEmpty; print('not null'); } else{ print('null'); } }
void main() { var name = 'devlunch4'; print(name); String name = 'devlunch4'; print(name); dynamic name; name = 123; if (name is String) { print(name.trim()); } if (name is int) { print('name:'); print(name); print('name.bitLength:'); print(name.bitLength); } }
void main() { for (int i = 0; i < 5; i++) { print('hello ${i + 1}'); } print('Hello World'); }
I wrote dart code and ran from this link. (https://dartpad.dev) 아래 링크에서 dart 코드 작성 및 실행 했습니다. DartPad dartpad.dev Logined and Created GIthub repository. 로그인 그리고 깃헙 레포지토리를 만들었습니다. a Class end -> updated gist and commited/pushed github(Code copy) -> next Class study 클래스가 끝나면 -> gist를 갱신하였고, github(코드복사) 커밋/푸시 하였습니다. -> 다음 클래스 공부 I followed the lecture web link (https://nomadcoders.co/dart-for-beg..