Programming in Dart: Fundamentals

Apr 26 2022 · Dart 2.15, DartPad, DartPad

Part 1: Fundamentals

04. Challenge: Play with Booleans

Episode complete

Play next episode

About this episode
Leave a rating/review
See forum comments
Cinema mode Mark complete Download course materials
Previous episode: 03. Understand Booleans & Comparison Operators Next episode: 05. Use Logical Operators

Get immediate access to this and 4,000+ other videos and books.

Take your career further with a Kodeco Personal Plan. With unlimited access to over 40+ books and 4,000+ professional videos in a single subscription, it's simply the best investment you can make in your development career.

Learn more Already a subscriber? Sign in.

Heads up... You've reached locked video content where the transcript will be shown as obfuscated text.

It’s time to get started with your first Dart challenges. In this episode, you’ll get two of them. So lets get started in the first one. For your first challenge, I want you to create a variable called myAge and assign it your current age. Then create a constant called isVotingAge. Set with a boolean based on if your age is over the legal limit. Pause the video now and give it a shot.

const myAge = 47;
const isVotingAge = myAge >= 18;
const student = 'Brian Moakley';
const author = 'Matt Galloway';
const authorIsStudent = 
const authorIsStudent = student == author;