ES6 - Explore Differences Between the var and let Keywords - Free Code Camp

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

Thank you Mr. Ian

let catName;
let quote;
function catTalk() {
"use strict";

catName = "Oliver";
quote = catName + " says Meow!";

}
catTalk();
console.log(catName)
console.log(quote)

zken
Автор

2022 solution

let catName = "Oliver";
let catSound = "Meow!";

forestkane_
Автор

i was confused why it keeps saying undefined even tho technically it works then realized there was no "return" call with the code

Jaypiasco
Автор

do you recommend finishing responsive web desing projects first before continuing with javascript?

pedrovarrgas