diff --git a/docs/style-guide.rst b/docs/style-guide.rst index 0c58f3eb8405..08dbb5cd817f 100644 --- a/docs/style-guide.rst +++ b/docs/style-guide.rst @@ -931,4 +931,10 @@ built-in or otherwise reserved name. General Recommendations ======================= -TODO +* Function parameter variable names + +It's convention to start function parameter variable names with an underscore (``_``) in order to differentiate them from global variables. e.g. ``function myFunction(_foo, _bar) { }`` + +* Private functions + +It's convention to start private function names with an underscore (``_``). e.g. ``_myPrivateFunction``