H.PROJECT

Home Project
  • 홈
  • 태그
  • 방명록

Legacy/[Legacy] Dart 3

Dart 기초 (3) Dynamic Type

void main() { // 변수를 선언하고 거기에 어떤 값을 할당하지 않으면 dynamic // dynamic = 어떤 type의 변수인지 알 수 없는 상태 var animal; animal = 'cat'; animal = 45; animal = true; print(animal); // dynamic으로 직접 명시해줄 수 있음 dynamic animalAge; animalAge = 19; if(animalAge is String){ var ageLength = animalAge.length; print(ageLength); } if(animalAge is int){ int age = animalAge; print(age); } // 다만, dynamic은 정말 필요할 때만 사용 } dynamic 타..

Legacy/[Legacy] Dart 2023.02.26

Dart 기초 (2) Variables (변수)

void main() { // var (String) var animal = 'dog'; print(animal); // 변수 명시적 선언 String String anotherAnimal = 'cat'; print(anotherAnimal); // var로 변수 선언한 animal을 다른 값으로 대체 animal = 'elephant'; print(animal); // String으로 변수 선언한 anotherAnimal 다른 값으로 대체 anotherAnimal = 'snake'; print(anotherAnimal); } var 관습적으로 함수나 메소드 내부에 지역 변수를 선언할 때 사용

Legacy/[Legacy] Dart 2023.02.26

Dart 기초 (1) Hello word

DartPad https://dartpad.dev/? DartPad dartpad.dev // main 함수 필수 void main() { print('Hello World!'); } Dart에서 main 함수는 필수

Legacy/[Legacy] Dart 2023.02.26
이전
1
다음
더보기
프로필사진

프로덕트에 미쳐있는 4년차 데이터 분석가

  • 분류 전체보기 (48)
    • Essay (0)
    • Product Analytics (9)
      • Statistics (5)
      • AB Test (4)
      • Causal Inference (0)
    • Data Science - MIT IDSS (1)
      • 00. Introduction to Data Sc.. (0)
      • 01. Foundations - Python an.. (0)
      • 02. Making Sense of Unstruc.. (0)
      • 03. Regression and Predicti.. (0)
      • 04. Classification and Hypo.. (0)
      • 05. Deep Learning (0)
      • 06. Recommendation Systems (0)
      • 07. Networking and Graphica.. (0)
      • 08. Predictive Analytics (0)
      • 09. Generative AI (0)
    • Strategy (0)
      • Wharton Strategic Managemen.. (0)
    • Product Design (17)
      • 프로덕트 디자인 (4)
      • 레퍼런스 분석 (6)
      • 문제해결 스터디 (3)
      • 아티클 스터디 (4)
      • 프로젝트 (0)
    • Legacy (21)
      • [Legacy] 알고리즘 (1)
      • [Legacy] 백준 (1)
      • [Legacy] Python (3)
      • [Legacy] Machine Learning (7)
      • [Legacy] Project (2)
      • [Legacy] Dart (3)
      • [Legacy] Flutter (1)
      • [Legacy] Data (3)

최근글과 인기글

  • 최근글
  • 인기글

방문자수Total

  • Today :
  • Yesterday :

  • github
  • Linkedin

티스토리툴바