Files
2022-01-20 20:30:18 +01:00

1.6 KiB

id, title, challengeType, videoUrl, forumTopicId, dashedName
id title challengeType videoUrl forumTopicId dashedName
bd7123c9c441eddfaeb5bdef ブール値を理解する 1 https://scrimba.com/c/c9Me8t4 301176 understanding-boolean-values

--description--

別のデータ型としてブール値 (Boolean) 型があります。 ブール値型は true または false のいずれか 1 つの値しか取りません。 基本的にはちょっとしたオン/オフスイッチとみなすことができ、true をオンに、false をオフに対応させることができます。 これら 2 つの状態は相互排他的です。

注: ブール値は引用符を付けて記述されることはありません。 文字列の "true""false" は ブール値ではなく、JavaScript では特別な意味を持ちません。

--instructions--

実行ボタンがクリックされたときに false ではなく true を返すように、welcomeToBooleans 関数を変更してください。

--hints--

welcomeToBooleans() 関数はブール値 (true または false) を返す必要があります。

assert(typeof welcomeToBooleans() === 'boolean');

welcomeToBooleans()true を返す必要があります。

assert(welcomeToBooleans() === true);

--seed--

--after-user-code--

welcomeToBooleans();

--seed-contents--

function welcomeToBooleans() {
  // Only change code below this line

  return false; // Change this line

  // Only change code above this line
}

--solutions--

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