Oliver Eyton-Williams f1c9b08cf3 fix(curriculum): add isHidden: false to challenges
This includes certificates (where it does nothing), but does not
include any translations.
2020-05-25 16:25:19 +05:30

1.6 KiB

id, title, challengeType, isHidden, videoUrl, forumTopicId
id title challengeType isHidden videoUrl forumTopicId
bd7123c9c444eddfaeb5bdef Declare String Variables 1 false https://scrimba.com/c/c2QvWU6 17557

Description

Previously we have used the code var myName = "your name"; "your name" is called a string literal. It is a string because it is a series of zero or more characters enclosed in single or double quotes.

Instructions

Create two new string variables: myFirstName and myLastName and assign them the values of your first and last name, respectively.

Tests

tests:
  - text: <code>myFirstName</code> should be a string with at least one character in it.
    testString: assert((function(){if(typeof myFirstName !== "undefined" && typeof myFirstName === "string" && myFirstName.length > 0){return true;}else{return false;}})());
  - text: <code>myLastName</code> should be a string with at least one character in it.
    testString: assert((function(){if(typeof myLastName !== "undefined" && typeof myLastName === "string" && myLastName.length > 0){return true;}else{return false;}})());

Challenge Seed




After Test

if(typeof myFirstName !== "undefined" && typeof myLastName !== "undefined"){(function(){return myFirstName + ', ' + myLastName;})();}

Solution

var myFirstName = "Alan";
var myLastName = "Turing";