Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lære Challenge: Naming Your First Variables | Variables and Type Inference
Dart Variables & Data Types

bookChallenge: Naming Your First Variables

Opgave

Swipe to start coding

Write a Dart program that declares variables for a user's name, age, and premium membership status. Use appropriate variable types and follow Dart naming conventions.

  • Declare a variable for the user's name using a type suitable for text.
  • Declare a variable for the user's age using a type suitable for whole numbers.
  • Declare a variable for whether the user is a premium member using a type suitable for true/false values.

Løsning

Var alt klart?

Hvordan kan vi forbedre det?

Tak for dine kommentarer!

Sektion 1. Kapitel 2
single

single

Spørg AI

expand

Spørg AI

ChatGPT

Spørg om hvad som helst eller prøv et af de foreslåede spørgsmål for at starte vores chat

close

bookChallenge: Naming Your First Variables

Stryg for at vise menuen

Opgave

Swipe to start coding

Write a Dart program that declares variables for a user's name, age, and premium membership status. Use appropriate variable types and follow Dart naming conventions.

  • Declare a variable for the user's name using a type suitable for text.
  • Declare a variable for the user's age using a type suitable for whole numbers.
  • Declare a variable for whether the user is a premium member using a type suitable for true/false values.

Løsning

Switch to desktopSkift til skrivebord for at øve i den virkelige verdenFortsæt der, hvor du er, med en af nedenstående muligheder
Var alt klart?

Hvordan kan vi forbedre det?

Tak for dine kommentarer!

Sektion 1. Kapitel 2
single

single

some-alt