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

Style guide violation #572

Closed
wants to merge 9 commits into from
6 changes: 3 additions & 3 deletions docs/js-core-1/week-4/lesson.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,10 +163,10 @@ Did you notice how calling the concat method did not change `arr`? This is becau
If you want to use the array returned by calling `.concat()` you should store it in a new variable.

```js
const arr = [1, 2, 3];
const newArr = arr.concat(4);
const array = [1, 2, 3];
MohitBansal321 marked this conversation as resolved.
Show resolved Hide resolved
const newArray = array.concat(4);
MohitBansal321 marked this conversation as resolved.
Show resolved Hide resolved

console.log(newArr); // logs [1, 2, 3, 4]
console.log(newArray); // logs [1, 2, 3, 4]
```

### `.slice()`
Expand Down
2 changes: 1 addition & 1 deletion docs/workshops/js-testing-workshop.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ _Unit testing_ though is always the responsibility of the Developer, and it is a
> Discussion: What is testable code?

```js
var result;
let result;

function getMentorInfo(mentors, name) {
var greeting = "Hello ";
Expand Down