Basic JavaScript - Explore Differences Between the var and let Keywords

I need help, I couldn’t find the solution.

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

  catName = "Oliver";
  quote = catName + " says Meow!";
}
catTalk();

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36 Edg/107.0.1418.52

Challenge: Basic JavaScript - Explore Differences Between the var and let Keywords

Link to the challenge:

The original code consisted of two lines.
They asked you to change those two lines to use let.

Not sure why you decided to add other lines of code?

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.