Hello everyone!
My question is about this project. (The “True or False” project within the Arrays & Loops module of the C# course.)
I’m sure this is a very basic question, so apologies in advance! But other forums (non-Codecademy) I’ve looked at that answer this question go way too far into detail for me to understand.
In this project, we are supposed to create an array of questions to ask the user, who will then answer each with “true” or “false.” I declared my array thus:
string[] questions = {"3 is equal to 5", "A horse is not a primate", "Van Gogh lived in the 21st century"};
But in the accompanying tutorial video, the Codecademy programmer includes “new string” on the right side of the equals sign, before the first opening bracket. Running my code, it still works fine. What is the rule for using the “new” keyword vs not using it, especially if I didn’t run into issues this time around?
Thanks much!
-Justin