diff --git a/client/src/components/layouts/global.css b/client/src/components/layouts/global.css index 8c7a9339306..4449b9bff46 100644 --- a/client/src/components/layouts/global.css +++ b/client/src/components/layouts/global.css @@ -511,6 +511,10 @@ hr { text-align: center; } +.challenge-instructions table tbody tr:nth-of-type(odd) { + background-color: var(--tertiary-background); +} + .help-block { color: var(--quaternary-color); } diff --git a/curriculum/challenges/english/01-responsive-web-design/applied-visual-design/adjust-the-hue-of-a-color.md b/curriculum/challenges/english/01-responsive-web-design/applied-visual-design/adjust-the-hue-of-a-color.md index 2d7852df615..a01219acc3b 100644 --- a/curriculum/challenges/english/01-responsive-web-design/applied-visual-design/adjust-the-hue-of-a-color.md +++ b/curriculum/challenges/english/01-responsive-web-design/applied-visual-design/adjust-the-hue-of-a-color.md @@ -19,7 +19,7 @@ Colors have several characteristics including hue, saturation, and lightness. CS Here are a few examples of using `hsl()` with fully-saturated, normal lightness colors: -
ColorHSL
redhsl(0, 100%, 50%)
yellowhsl(60, 100%, 50%)
greenhsl(120, 100%, 50%)
cyanhsl(180, 100%, 50%)
bluehsl(240, 100%, 50%)
magentahsl(300, 100%, 50%)
+
ColorHSL
redhsl(0, 100%, 50%)
yellowhsl(60, 100%, 50%)
greenhsl(120, 100%, 50%)
cyanhsl(180, 100%, 50%)
bluehsl(240, 100%, 50%)
magentahsl(300, 100%, 50%)
# --instructions-- diff --git a/curriculum/challenges/english/01-responsive-web-design/applied-visual-design/learn-about-tertiary-colors.md b/curriculum/challenges/english/01-responsive-web-design/applied-visual-design/learn-about-tertiary-colors.md index 7f4bbbd27c9..1be76bc8ef9 100644 --- a/curriculum/challenges/english/01-responsive-web-design/applied-visual-design/learn-about-tertiary-colors.md +++ b/curriculum/challenges/english/01-responsive-web-design/applied-visual-design/learn-about-tertiary-colors.md @@ -16,7 +16,7 @@ There are various methods of selecting different colors that result in a harmoni Here are three colors created using the split-complement scheme: -
ColorHex Code
orange#FF7F00
cyan#00FFFF
raspberry#FF007F
+
ColorHex Code
orange#FF7F00
cyan#00FFFF
raspberry#FF007F
# --instructions-- diff --git a/curriculum/challenges/english/01-responsive-web-design/applied-visual-design/use-the-text-transform-property-to-make-text-uppercase.md b/curriculum/challenges/english/01-responsive-web-design/applied-visual-design/use-the-text-transform-property-to-make-text-uppercase.md index e5dc9362c67..2cd3670b7ca 100644 --- a/curriculum/challenges/english/01-responsive-web-design/applied-visual-design/use-the-text-transform-property-to-make-text-uppercase.md +++ b/curriculum/challenges/english/01-responsive-web-design/applied-visual-design/use-the-text-transform-property-to-make-text-uppercase.md @@ -13,7 +13,7 @@ The `text-transform` property in CSS is used to change the appearance of text. I The following table shows how the different `text-transform`values change the example text "Transform me". -
ValueResult
lowercase"transform me"
uppercase"TRANSFORM ME"
capitalize"Transform Me"
initialUse the default value
inheritUse the text-transform value from the parent element
noneDefault: Use the original text
+
ValueResult
lowercase"transform me"
uppercase"TRANSFORM ME"
capitalize"Transform Me"
initialUse the default value
inheritUse the text-transform value from the parent element
noneDefault: Use the original text
# --instructions-- diff --git a/curriculum/challenges/english/01-responsive-web-design/basic-css/use-abbreviated-hex-code.md b/curriculum/challenges/english/01-responsive-web-design/basic-css/use-abbreviated-hex-code.md index fb6c62be8b6..7b12f11f092 100644 --- a/curriculum/challenges/english/01-responsive-web-design/basic-css/use-abbreviated-hex-code.md +++ b/curriculum/challenges/english/01-responsive-web-design/basic-css/use-abbreviated-hex-code.md @@ -19,7 +19,7 @@ This reduces the total number of possible colors to around 4,000. But browsers w Go ahead, try using the abbreviated hex codes to color the correct elements. -
ColorShort Hex Code
Cyan#0FF
Green#0F0
Red#F00
Fuchsia#F0F
+
ColorShort Hex Code
Cyan#0FF
Green#0F0
Red#F00
Fuchsia#F0F
# --hints-- diff --git a/curriculum/challenges/english/01-responsive-web-design/basic-css/use-hex-code-to-mix-colors.md b/curriculum/challenges/english/01-responsive-web-design/basic-css/use-hex-code-to-mix-colors.md index c72783eba8b..d2a93e41223 100644 --- a/curriculum/challenges/english/01-responsive-web-design/basic-css/use-hex-code-to-mix-colors.md +++ b/curriculum/challenges/english/01-responsive-web-design/basic-css/use-hex-code-to-mix-colors.md @@ -23,7 +23,7 @@ The digit `F` is the highest number in hex code, and represents the maximum poss Replace the color words in our `style` element with their correct hex codes. -
ColorHex Code
Dodger Blue#1E90FF
Green#00FF00
Orange#FFA500
Red#FF0000
+
ColorHex Code
Dodger Blue#1E90FF
Green#00FF00
Orange#FFA500
Red#FF0000
# --hints-- diff --git a/curriculum/challenges/english/01-responsive-web-design/basic-css/use-rgb-to-mix-colors.md b/curriculum/challenges/english/01-responsive-web-design/basic-css/use-rgb-to-mix-colors.md index 65af4b7769e..c8e3a6e16de 100644 --- a/curriculum/challenges/english/01-responsive-web-design/basic-css/use-rgb-to-mix-colors.md +++ b/curriculum/challenges/english/01-responsive-web-design/basic-css/use-rgb-to-mix-colors.md @@ -15,7 +15,7 @@ Just like with hex code, you can mix colors in RGB by using combinations of diff Replace the hex codes in our `style` element with their correct RGB values. -
ColorRGB
Bluergb(0, 0, 255)
Redrgb(255, 0, 0)
Orchidrgb(218, 112, 214)
Siennargb(160, 82, 45)
+
ColorRGB
Bluergb(0, 0, 255)
Redrgb(255, 0, 0)
Orchidrgb(218, 112, 214)
Siennargb(160, 82, 45)
# --hints-- diff --git a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/counting-cards.md b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/counting-cards.md index 8ff09d8ce8c..b640a6dbb9e 100644 --- a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/counting-cards.md +++ b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/counting-cards.md @@ -13,7 +13,7 @@ In the casino game Blackjack, a player can determine whether they have an advant Having more high cards remaining in the deck favors the player. Each card is assigned a value according to the table below. When the count is positive, the player should bet high. When the count is zero or negative, the player should bet low. -
Count ChangeCards
+12, 3, 4, 5, 6
07, 8, 9
-110, 'J', 'Q', 'K', 'A'
+
Count ChangeCards
+12, 3, 4, 5, 6
07, 8, 9
-110, 'J', 'Q', 'K', 'A'
You will write a card counting function. It will receive a `card` parameter, which can be a number or a string, and increment or decrement the global `count` variable according to the card's value (see table). The function will then return a string with the current count and the string `Bet` if the count is positive, or `Hold` if the count is zero or negative. The current count and the player's decision (`Bet` or `Hold`) should be separated by a single space. diff --git a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/escape-sequences-in-strings.md b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/escape-sequences-in-strings.md index dce636b262c..5cd3d012444 100644 --- a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/escape-sequences-in-strings.md +++ b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/escape-sequences-in-strings.md @@ -11,7 +11,7 @@ dashedName: escape-sequences-in-strings Quotes are not the only characters that can be escaped inside a string. Escape sequences allow you to use characters you may not otherwise be able to use in a string. -
CodeOutput
\'single quote
\"double quote
\\backslash
\nnewline
\ttab
\rcarriage return
\bbackspace
\fform feed
+
CodeOutput
\'single quote
\"double quote
\\backslash
\nnewline
\ttab
\rcarriage return
\bbackspace
\fform feed
*Note that the backslash itself must be escaped in order to display as a backslash.* diff --git a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/golf-code.md b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/golf-code.md index 3450f8406cb..76f030bbccd 100644 --- a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/golf-code.md +++ b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/golf-code.md @@ -13,7 +13,7 @@ In the game of Golf, each hole has a `par`, meaning, the average number of `stro Your function will be passed `par` and `strokes` arguments. Return the correct string according to this table which lists the strokes in order of priority; top (highest) to bottom (lowest): -
StrokesReturn
1"Hole-in-one!"
<= par - 2"Eagle"
par - 1"Birdie"
par"Par"
par + 1"Bogey"
par + 2"Double Bogey"
>= par + 3"Go Home!"
+
StrokesReturn
1"Hole-in-one!"
<= par - 2"Eagle"
par - 1"Birdie"
par"Par"
par + 1"Bogey"
par + 2"Double Bogey"
>= par + 3"Go Home!"
`par` and `strokes` will always be numeric and positive. We have added an array of all the names for your convenience. diff --git a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/javascript-algorithms-and-data-structures-projects/cash-register.md b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/javascript-algorithms-and-data-structures-projects/cash-register.md index bc92f65b8e1..39e0fe0c652 100644 --- a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/javascript-algorithms-and-data-structures-projects/cash-register.md +++ b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/javascript-algorithms-and-data-structures-projects/cash-register.md @@ -20,7 +20,7 @@ Return `{status: "CLOSED", change: [...]}` with cash-in-drawer as the value for Otherwise, return `{status: "OPEN", change: [...]}`, with the change due in coins and bills, sorted in highest to lowest order, as the value of the `change` key. -
Currency UnitAmount
Penny$0.01 (PENNY)
Nickel$0.05 (NICKEL)
Dime$0.1 (DIME)
Quarter$0.25 (QUARTER)
Dollar$1 (ONE)
Five Dollars$5 (FIVE)
Ten Dollars$10 (TEN)
Twenty Dollars$20 (TWENTY)
One-hundred Dollars$100 (ONE HUNDRED)
+
Currency UnitAmount
Penny$0.01 (PENNY)
Nickel$0.05 (NICKEL)
Dime$0.1 (DIME)
Quarter$0.25 (QUARTER)
Dollar$1 (ONE)
Five Dollars$5 (FIVE)
Ten Dollars$10 (TEN)
Twenty Dollars$20 (TWENTY)
One-hundred Dollars$100 (ONE HUNDRED)
See below for an example of a cash-in-drawer array: diff --git a/curriculum/challenges/english/10-coding-interview-prep/data-structures/typed-arrays.md b/curriculum/challenges/english/10-coding-interview-prep/data-structures/typed-arrays.md index b992af729a4..5d1e598b75f 100644 --- a/curriculum/challenges/english/10-coding-interview-prep/data-structures/typed-arrays.md +++ b/curriculum/challenges/english/10-coding-interview-prep/data-structures/typed-arrays.md @@ -20,7 +20,7 @@ However, in the world of high performance and different element types, sometimes Typed arrays are the answer to this problem. You are now able to say how much memory you want to give an array. Below is a basic overview of the different types of arrays available and the size in bytes for each element in that array. -
TypeEach element size in bytes
Int8Array1
Uint8Array1
Uint8ClampedArray1
Int16Array2
Uint16Array2
Int32Array4
Uint32Array4
Float32Array4
Float64Array8
+
TypeEach element size in bytes
Int8Array1
Uint8Array1
Uint8ClampedArray1
Int16Array2
Uint16Array2
Int32Array4
Uint32Array4
Float32Array4
Float64Array8
There are two ways in creating these kind of arrays. One way is to create it directly. Below is how to create a 3 length `Int16Array`. diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/build-a-cash-register-project/cash-register.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/build-a-cash-register-project/cash-register.md index 4653f6358b1..c98d513eb13 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/build-a-cash-register-project/cash-register.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/build-a-cash-register-project/cash-register.md @@ -20,7 +20,7 @@ Return `{status: "CLOSED", change: [...]}` with cash-in-drawer as the value for Otherwise, return `{status: "OPEN", change: [...]}`, with the change due in coins and bills, sorted in highest to lowest order, as the value of the `change` key. -
Currency UnitAmount
Penny$0.01 (PENNY)
Nickel$0.05 (NICKEL)
Dime$0.1 (DIME)
Quarter$0.25 (QUARTER)
Dollar$1 (ONE)
Five Dollars$5 (FIVE)
Ten Dollars$10 (TEN)
Twenty Dollars$20 (TWENTY)
One-hundred Dollars$100 (ONE HUNDRED)
+
Currency UnitAmount
Penny$0.01 (PENNY)
Nickel$0.05 (NICKEL)
Dime$0.1 (DIME)
Quarter$0.25 (QUARTER)
Dollar$1 (ONE)
Five Dollars$5 (FIVE)
Ten Dollars$10 (TEN)
Twenty Dollars$20 (TWENTY)
One-hundred Dollars$100 (ONE HUNDRED)
See below for an example of a cash-in-drawer array: