Randell Dawson e9212c61d2 fix(curriculum): Remove unnecessary assert message argument from English challenges JavaScript Algorithms and Data Structures - 01 (#36401)
* fix: rm assert msg basic-javascript

* fix: removed more assert msg args

* fix: fixed verbiage

Co-Authored-By: Parth Parth <34807532+thecodingaviator@users.noreply.github.com>
2019-07-13 08:07:53 +01:00

1.7 KiB

id, title, challengeType, videoUrl
id title challengeType videoUrl
bd7123c9c441eddfaeb5bdef Understanding Boolean Values 1 https://scrimba.com/c/c9Me8t4

Description

Another data type is the Boolean. Booleans may only be one of two values: true or false. They are basically little on-off switches, where true is "on" and false is "off." These two states are mutually exclusive. Note
Boolean values are never written with quotes. The strings "true" and "false" are not Boolean and have no special meaning in JavaScript.

Instructions

Modify the welcomeToBooleans function so that it returns true instead of false when the run button is clicked.

Tests

tests:
  - text: The <code>welcomeToBooleans()</code> function should return a boolean &#40;true/false&#41; value.
    testString: assert(typeof welcomeToBooleans() === 'boolean');
  - text: <code>welcomeToBooleans()</code> should return true.
    testString: assert(welcomeToBooleans() === true);

Challenge Seed

function welcomeToBooleans() {

  // Only change code below this line.

  return false; // Change this line

  // Only change code above this line.
}

After Test

welcomeToBooleans();

Solution

function welcomeToBooleans() {
  return true; // Change this line
}