In Dart and JavaScript we have var keyword for the variable declaration but both are not same.
There is the dynamic keyword for variable...
For further actions, you may consider blocking this person and/or reporting abuse
Thanks for the post, Nitish 👍
I've never used Dart and the post was very easy to follow.
How I understood about
var
in Dart is that, Dart keeps track of initial variable type whiledynamic
.And shouldn't the example 4 use
dynamic
keyword?Awesome!
Cool, so var can be either dynamic or another type depending on how it is initialized.
Thanks for sharing Nitish! Keep them coming.
Thanks
Very usefull post for understanding. Thnx !