Last answered:

30 Jun 2025

Posted on:

30 Jun 2025

0

Resolved: do we need to add any semicolon after the function

like other programming language do wee need here after compleletion after statement
2 answers ( 1 marked as helpful)
Posted on:

30 Jun 2025

0

Hi, DHIRENDRA PRATAP SINGH,

Thanks for reaching out. In programming, whether or not you need to add a semicolon after a function depends on the specific programming language you are using.

For instance:

  • JavaScript: Semicolons are optional but recommended to avoid potential issues.
  • C/C++: Semicolons are required after function declarations and statements.
  • Python: Semicolons are not needed as line endings are defined by the end of a line.

If you could let me know which specific programming language you are referring to, I’d be happy to provide more tailored guidance!

Posted on:

30 Jun 2025

0
this is fine, with python we don' t need to add semicolon

Submit an answer