Learn full-stack web development using fastn in a week
Learn Now
Frontend
->
Variable & it's Type

Variable and it's Types

Following are the guidelines that helps to improve the quality of the code with respect to Variables and it's Types.
singular-plural-naming: Use Singular Variable Names for Plural Types
When the type of the variable is in plural noun, then the variable should also be in plural and we should avoid using singular noun for variable name.
Not recommended
children child:
Lang:
ftd
Recommended
children ui-list:
Lang:
ftd