Skip to content

switched number-to-string to const - #230

Merged
AnshulMalik merged 1 commit into
workshopper:es6from
cbonaudo:switch-numbertostring-to-const
Oct 18, 2018
Merged

switched number-to-string to const#230
AnshulMalik merged 1 commit into
workshopper:es6from
cbonaudo:switch-numbertostring-to-const

Conversation

@cbonaudo

Copy link
Copy Markdown
Contributor

On the problem number-to-string (all languages) and the solution number-to-string, I replaced 'var' to 'const', since it does not need to be reassigned.

@AryanJ-NYC

AryanJ-NYC commented Oct 18, 2018

Copy link
Copy Markdown
Contributor

Hey @cbonaudo. All "replacing var to const" pull requests should have a base branch of es6, not master.

Please change the base branch of this PR correspondingly. Thanks!

Reference #229.

@AnshulMalik
AnshulMalik changed the base branch from master to es6 October 18, 2018 13:16
@AnshulMalik
AnshulMalik merged commit 65d5e7b into workshopper:es6 Oct 18, 2018
@cbonaudo
cbonaudo deleted the switch-numbertostring-to-const branch October 18, 2018 13:33
@AryanJ-NYC

Copy link
Copy Markdown
Contributor

@AnshulMalik @cbonaudo This merge needs to be reverted. They all should be let and not const as reassignment is alluded to in the next line.

@AnshulMalik

Copy link
Copy Markdown
Contributor

Ohh, nice catch :)

AnshulMalik added a commit that referenced this pull request Oct 18, 2018
AnshulMalik added a commit that referenced this pull request Oct 21, 2018
* Revert "Replace var with const and let in accessing-array-values (#228)"

This reverts commit cf34563.

* Revert "switched number-to-string to const (#230)"

This reverts commit 65d5e7b.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants