QuestionQ100Verified/Control Flow – Conditional Blocks and LoopsCopy linkReport a problemAsk AstroTutorSave questionWhich of the following statements are true?Choose twoAFunction is obliged to return a value.BEvery function must be defined before it is invoked.CA function can invoke itself.DIt’s possible to define more than one function of the same name.Show AnswerAnswerExplanationJavaScript supports recursion, so a function can invoke itself. It also permits redeclaration of function declarations with the same name in applicable script or function scopes. A return value is not required, and a function declaration can be invoked before its written definition because declarations are hoisted.Learn moreMDN Web Docs: function statementMDN Web Docs: Functions guideShow comments0Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion