freeCodeCamp/curriculum/challenges/arabic/02-javascript-algorithms-an.../es6/explore-differences-between...

961 B

id title challengeType videoUrl localeTitle
587d7b87367417b2b2512b3f Explore Differences Between the var and let Keywords 1

Description

undefined

Instructions

undefined

Tests

tests:
  - text: ''
    testString: 'getUserInput => assert(!getUserInput("index").match(/var/g),"<code>var</code> does not exist in code.");'
  - text: ''
    testString: 'assert(catName === "Oliver", "<code>catName</code> should be <code>Oliver</code>.");'
  - text: ''
    testString: 'assert(quote === "Oliver says Meow!", "<code>quote</code> should be <code>"Oliver says Meow!"</code>");'

Challenge Seed

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

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

}
catTalk();

Solution

// solution required