- What is expected output and why?
const firstName = 'ivan';
const lastName = 'ivan';
console.log(firstName === lastName); // => ???
let currency = '$';
let currencyUS = currency;
console.log(currency == currencyUS); // => ???
let student = {
firstName: 'marc',
lastName: 'jackobs'
}
let ironhacker = student;
console.log(student === ironhacker); // => ???
const uniStudent = {
firstName: 'marc',
lastName: 'jackobs'
}
console.log(student === uniStudent); // => ???
- Copy the object 'chillStudent' into a new object 'coolStudent' using the
for...in loop
const chillStudent = {
firstName: 'ana',
address: {
nubmer: 1234,
street: 'IronAvenue',
city: 'Miami'
}
}
const coolStudent = {};
// ... your code here
console.log(coolStudent.address.street); // => IronAvenue