From 480ab64792f45c804105a4ff1171decdaca18789 Mon Sep 17 00:00:00 2001 From: sJhonny-e Date: Sun, 25 Nov 2018 19:40:23 +0000 Subject: [PATCH] JS now supports consts --- README.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 69d9aa4..633b191 100644 --- a/README.md +++ b/README.md @@ -114,12 +114,10 @@ Configures Providers. For example, `$locationProvider.html5Mode(true);`. ### Constants -Although JavaScript does not yet support constants, we run our application through Traceur, which supports `const`. - -The constant should be named in all uppercase if it's a global constant that will be used across many different functions. +A constant should be named in all uppercase if it's a global constant that will be used across many different functions. For example, `export const API_URL = 'https://api.gocardless.com'`. -If the constant is defined within a single function, it should be in regular camelCase. +If a constant is defined within a single function, it should be in regular camelCase. ### Helpers