Please see pull request ##1262
In Lesson 5
https://github.com/LambdaSchool/Precourse/tree/master/Lesson5-JS-II#undefined-and-null
let phoneNumber = '123-456-7890';
phoneNumber = null;
phoneNumer; // null
Should be phoneNumber; // null
https://github.com/LambdaSchool/Precourse/tree/master/Lesson5-JS-II#comparison-operators-continued
1 > 2; // alse
should be 1 > 2; // false
In Lesson 6
https://github.com/LambdaSchool/Precourse/tree/master/Lesson6-JS-III#length
const studentsNames = ['Dan', 'Maria', 'Sara', 'Raj'];
console.log(studentNames.length); // 4
Should be console.log(studentsNames.length)
https://github.com/LambdaSchool/Precourse/tree/master/Lesson6-JS-III#accessing-items-in-an-array
const studentsNames = ['Dan', 'Maria', 'Sara', 'Raj'];
console.log(studentNames[1]); // 'Maria'
Should be console.log(studentsNames[1]); // 'Maria'
const studentsNames = ['Dan', 'Maria', 'Sara', ... ,'Raj'];
console.log(studentNames[studentNames.length - 1]); // 'Raj'
Should be console.log(studentNames[studentsNames.length - 1]); // 'Raj'
https://github.com/LambdaSchool/Precourse/tree/master/Lesson6-JS-III#assignment
const studentsNames = ['Dan', 'Maria', 'Sara', 'Raj'];
studentNames[0] = 'Ryan';
console.log(studentNames); // ['Ryan', 'Maria', 'Sara', 'Raj']
Should be:
const studentsNames = ['Dan', 'Maria', 'Sara', 'Raj'];
studentsNames[0] = 'Ryan';
console.log(studentsNames); // ['Ryan', 'Maria', 'Sara', 'Raj']
https://github.com/LambdaSchool/Precourse/tree/master/Lesson6-JS-III#push--pop
const studentsNames = ['Dan', 'Maria', 'Sara', 'Raj'];
studentNames.push('Ryan');
console.log(studentNames); // ['Dan', 'Maria', 'Sara', 'Raj', 'Ryan']
Should be:
const studentsNames = ['Dan', 'Maria', 'Sara', 'Raj'];
studentsNames.push('Ryan');
console.log(studentsNames); // ['Dan', 'Maria', 'Sara', 'Raj', 'Ryan']
&
const studentsNames = ['Dan', 'Maria', 'Sara', 'Raj'];
studentNames.pop();
console.log(studentNames); // ['Dan', 'Maria', 'Sara']
Should be:
const studentsNames = ['Dan', 'Maria', 'Sara', 'Raj'];
studentsNames.pop();
console.log(studentsNames); // ['Dan', 'Maria', 'Sara']
https://github.com/LambdaSchool/Precourse/tree/master/Lesson6-JS-III#unshift--shift
const studentsNames = ['Dan', 'Maria', 'Sara', 'Raj'];
studentNames.unshift('Ryan');
console.log(studentNames); // ['Ryan', 'Dan', 'Maria', 'Sara', 'Raj']
studentNames.shift();
console.log(studentNames); // ['Dan', 'Maria', 'Sara', 'Raj']
Should be:
const studentsNames = ['Dan', 'Maria', 'Sara', 'Raj'];
studentsNames.unshift('Ryan');
console.log(studentsNames); // ['Ryan', 'Dan', 'Maria', 'Sara', 'Raj']
studentsNames.shift();
console.log(studentsNames); // ['Dan', 'Maria', 'Sara', 'Raj']
https://github.com/LambdaSchool/Precourse/tree/master/Lesson6-JS-III#for-loops
const studentsNames = ['Dan', 'Maria', 'Sara', 'Raj'];
for (let i = 0; i < studentNames.length; i++) {
console.log(studentNames[i]);
}
Should be:
const studentsNames = ['Dan', 'Maria', 'Sara', 'Raj'];
for (let i = 0; i < studentsNames.length; i++) {
console.log(studentsNames[i]);
}
In Lesson 7
https://github.com/LambdaSchool/Precourse/tree/master/Lesson7-JS-IV#the-this-keyword
userSaysHi: function(){
console.log( this.username + ' says hi!');
},
};
user.usersaysHi(); // 'dan.frehner says hi!'
Should be user.userSaysHi(); // 'dan.frehner says hi!'
In Lesson 8
https://github.com/LambdaSchool/Precourse/tree/master/Lesson8-JS-V#prototype
function User(name, github) {
this.name = name;
this.github = github;
}
User.prototype.introduction = function(){
return 'My name is ' + this.name + ', my github handle is ' + this.github + '.';
}
let dan = new User('Dan', 'tetondan');
let riley = new Cat('Riley', 'rileyriley');
console.log(dan.introduction()); // My name is Dan, my github handle is tetondan.
console.log(riley.introduction()); // My name is Riley, my github handle is rileyriley.
Should be let riley = new User('Riley', 'rileyriley');