Printing a statement in DartTo tell our computer to display a English sentence or any human language sentence, we type print(" ") in DartPad and include our sentence in those double inverted commas followed by a semicolon compulsorily.
Example: print("Hello World!");
Inverted commas are important because we can write the sentence in single inverted commas too, like print('Hello World!'); it will give the same output, but it will matter when there is an apostrophe in our sentence.
If we want to write I'm Abby as a sentence, then using single inverted commas will treat only 'I' as a string (a type of data in programming) and rest of m Abby will not be identified by compiler. Hence will give an error.
What is Syntax?Some rules and regulations while writing code is called syntax. Like it is mandatory to add a semicolon after every statement of our code.
Need more Information?Click here for YouTube Link
Very Easy! Follow my video lectures on YouTube link and keep reading my blog here for more information. In the video lectures I have explained all the basic and minor details. The same content will be posted on this website if you like reading more than watching.