Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use backticks rather than concatenation #38

Open
eyalroz opened this issue Sep 9, 2020 · 0 comments
Open

Use backticks rather than concatenation #38

eyalroz opened this issue Sep 9, 2020 · 0 comments
Labels

Comments

@eyalroz
Copy link
Owner

eyalroz commented Sep 9, 2020

In modern Javascript, we can write:

let foo = `Voxel coordinates are (${x}, ${y}, ${z})`;

while in the past we had to write this add

let foo = 'Voxel coordinates are (' + x + ', ' + y + ', ' + z + ')';

the former is easier to type and less easy to get confused about. Let's use it then.

@eyalroz eyalroz added the task label Sep 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant