-
Notifications
You must be signed in to change notification settings - Fork 4.3k
for the issue: [Entry] Variables: Creating new concept entry variables.md #4237 #4428
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
dakshdeepHERE
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have few comments for you to work on. Overall amazing entry.
| Object name = 'value'; | ||
| ``` | ||
|
|
||
| The Dart Language enforces sound null safety, allowes to set default values, constants and to declare the late variables (for more details see https://dart.dev/language/variables#default-value). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Linking something outside of codecademy platform isn't allowed. Let's remove this hyperlink.
Co-authored-by: Daksha Deep <dakshadeep1234@gmail.com>
zkhOlga
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The suggestions from the code review are implemented
dakshdeepHERE
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚀
ishg-153
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@zkhOlga Suggested changes to the syntax section. Everything else looks great.
Sorry for the delayed review.
| When declaring a variable in Dart, the type of variable goes first, followed by the name, and then the value: | ||
|
|
||
| ```pseudo | ||
| type name = 'value'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| type name = 'value'; | |
| type name = value; |
So that value can be any data type.
| type name = 'value'; | ||
| ``` | ||
|
|
||
| The default type 'var' is inferred to be a `string`. If an object isn't restricted to a single type, specify the Object type (or dynamic if necessary): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since we are adding all the values of type can take above, let's make this a note.
> **Note:** text inside note
|
@zkhOlga How are the suggested changes coming along? |
|
Due to lack of response from @zkhOlga I'm moving forward by making the changes |
ishg-153
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good to merge.
|
👋 @zkhOlga 🎉 Your contribution(s) can be seen here: https://www.codecademy.com/resources/docs/dart/variables Please note it may take a little while for changes to become visible. |
Description
The new entry variables.md is created for Dart
Issue Solved
Closes #4237
Type of Change
Checklist
mainbranch.Issues Solvedsection.