Day 3 of Flutter
Dart pad
debug console and terminal
instead of just writing print Life is beautiful 3 times like this
print("Life is beautiful");
print("Life is beautiful");
print("Life is beautiful");
We can assign a variable to represent the string known as Life is beautiful so
x = "life is beautiful"
print(x);
print(x);
print(x);
Remember x is not a string and life is beautiful is string since its the value we want printed
we could do it that way or we could have done:
String x = "life is beautiful";
print(x);
print(x);
print(x);
and that could still fulfil it
var is variable so it gives us a variable
print x.runtimeType will make stuff fast
List<Sting> x = ["hello there"];
print(x);
for example:
var x = [14, "Samrat", "Julia", "11"]
if we print x it gives us the whole thing