FunctionDefines a function.SyntaxreturnType name(type p) { return ...; }DescriptionReturn type, name, parameters. Define before main or declare a prototype.ExampleLoading editor…▶ Try it yourselfExpected output25When to use?Preventing code repetition.Related commandsclassclass →