From 166cd8ea33e5f0418a809501cb83ec7a941cddf7 Mon Sep 17 00:00:00 2001 From: Dmitry Gusev Date: Fri, 17 Feb 2017 18:49:16 +0300 Subject: [PATCH] Use `const` instead of `var` for math constants --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a88bfbd..b537a4e 100644 --- a/README.md +++ b/README.md @@ -325,7 +325,7 @@ Language-level support for modules for component definition. Codifies patterns export function sum(x, y) { return x + y; } -export var pi = 3.141593; +export const pi = 3.141593; ``` ```JavaScript // app.js @@ -343,7 +343,7 @@ Some additional features include `export default` and `export *`: ```JavaScript // lib/mathplusplus.js export * from "lib/math"; -export var e = 2.71828182846; +export const e = 2.71828182846; export default function(x) { return Math.log(x); }