code commenting practice Flashcards
1
Q
comment multiple lines in vs code shortcut
A
ctrl + shift + a
2
Q
@desc
A
Write down a description for your function
3
Q
@param
A
Describe all input parameters the function accepts. Make sure to define the input types.
4
Q
@returns
A
Describe the returned output. Make sure to define the output type.
5
Q
@throws
A
Describe the error type the function can throw
6
Q
@example
A
Include one or multiple examples that show the input and output