Skip to content

Conversation

zochasz
Copy link

@zochasz zochasz commented Jun 22, 2017

I can't find where to use "array destructuring" in the "4. Letter Sequencer".

function bubbleSort(array) {
var length = array.length;
for (var i = (length - 1); i > 0; i--) {
const length = array.length;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

const length
=>
const arrayLength

Give more detailed names to your variables :)

if (currentChar === prevChar){
repeatCount++
if (currentChar === prevChar){
repeatCount++

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Semicolons

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.

2 participants