Javatpoint Logo
Javatpoint Logo

F# Comments

F# comments are statements that are not executed by the compiler. The comments in F# programming can be used to provide explanation of code, variable, method or class. By the help of comments you can hide program code also.

There are two types of comments in F#.

  • Single line comment
  • Multiline comment

F# Single Line Comment

Single line comment starts with //(double slash). Let's see an example of single line comment in F#.



F# Multiline Comment

The F# multiline comment is used to comment multiple lines of code. It is surrounded by opening and closing brackets with astrick(*). Let's see an example of multiline comment in F#



Youtube For Videos Join Our Youtube Channel: Join Now


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Trending Technologies

B.Tech / MCA