Randell Dawson 05f73ca409 fix(curriculum): Convert blockquote elements to triple backtick syntax for JavaScript Algorithms and Data Structures (#35992)
* fix: convert js algorithms and data structures

* fix: revert some blocks back to blockquote

* fix: reverted comparison code block to blockquotes

* fix: change js to json

Co-Authored-By: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>

* fix: convert various section to triple backticks

* fix: Make the formatting consistent for comparisons
2019-05-17 08:20:30 -05:00

1.1 KiB

id, title, challengeType, videoUrl
id title challengeType videoUrl
cf1231c1c11feddfaeb5bdef Multiply Two Numbers with JavaScript 1 https://scrimba.com/c/cP3y3Aq

Description

We can also multiply one number by another. JavaScript uses the * symbol for multiplication of two numbers.

Example

myVar = 13 * 13; // assigned 169

Instructions

Change the 0 so that product will equal 80.

Tests

tests:
  - text: Make the variable <code>product</code> equal 80
    testString: assert(product === 80,'Make the variable <code>product</code> equal 80');
  - text: Use the <code>*</code> operator
    testString: assert(/\*/.test(code), 'Use the <code>*</code> operator');

Challenge Seed

var product = 8 * 0;


After Test

(function(z){return 'product = '+z;})(product);

Solution

var product = 8 * 10;