diff --git a/curriculum/challenges/english/blocks/workshop-greeting-bot/66ad984e92ce213a66f7e51c.md b/curriculum/challenges/english/blocks/workshop-greeting-bot/66ad984e92ce213a66f7e51c.md index 3454cd75a65..7811a0438c0 100644 --- a/curriculum/challenges/english/blocks/workshop-greeting-bot/66ad984e92ce213a66f7e51c.md +++ b/curriculum/challenges/english/blocks/workshop-greeting-bot/66ad984e92ce213a66f7e51c.md @@ -7,30 +7,30 @@ dashedName: step-4 # --description-- -When you need to declare variables with multiple words, you can use the camelCase naming convention. +Now, it is time to assign a value to your `bot` variable. -When using `camelCase`, the first word is all lowercase and the first letter of each subsequent word is capitalized. - -Here is an example: +In the previous lectures, you learned how to assign values to variables like this: ```js -let thisIsCamelCase; +variableName = "Here is the value"; ``` -Use `let` to declare a variable named `botLocation`. +Remember that what is on the right side of the assignment operator `=` is the value that you are assigning to the variable on the left side. + +Assign the string `"teacherBot"` to the `bot` variable. # --hints-- -You should use `let` to declare the variable. +You should assign a string to your `bot` variable. ```js -assert.lengthOf(code.match(/let/g), 2); +assert.isString(bot); ``` -Your variable should be named `botLocation`. +Your `bot` variable should be assigned the string `"teacherBot"`. ```js -assert.isNotNull(botLocation); +assert.equal(bot, "teacherBot"); ``` # --seed-- diff --git a/curriculum/challenges/english/blocks/workshop-greeting-bot/66ad998285df023b23dacdd3.md b/curriculum/challenges/english/blocks/workshop-greeting-bot/66ad998285df023b23dacdd3.md index 8fd99996030..a181e5b9a59 100644 --- a/curriculum/challenges/english/blocks/workshop-greeting-bot/66ad998285df023b23dacdd3.md +++ b/curriculum/challenges/english/blocks/workshop-greeting-bot/66ad998285df023b23dacdd3.md @@ -7,30 +7,32 @@ dashedName: step-5 # --description-- -Now, it is time to assign some values to your `bot` and `botLocation` variables. +Now, it is time to initialize the `botLocation` variable. -In the previous lectures, you learned how to assign values to variables like this: +When you need to declare variables with multiple words, you can use the camelCase naming convention. + +When using `camelCase`, the first word is all lowercase and the first letter of each subsequent word is capitalized. + +Here is an example: ```js -variableName = "Here is the value"; +let thisIsCamelCase = "Alice the camel is actually a horse."; ``` -Remember that what is on the right side of the assignment operator `=` is the value that you are assigning to the variable on the left side. - -Assign the string `"teacherBot"` to the `bot` variable and the string `"the universe"` to the `botLocation` variable. +Declare and assign the string `"the universe"` to the `botLocation` variable on the same line using the `let` keyword. # --hints-- -You should assign a string to your `bot` variable. +Use the `let` keyword to declare a variable. ```js -assert.isString(bot); +assert.lengthOf(__helpers.removeJSComments(code).match(/let/g), 2); ``` -Your `bot` variable should be assigned the string `"teacherBot"`. +Your variable should be named `botLocation`. ```js -assert.equal(bot, "teacherBot"); +assert.isNotNull(botLocation); ``` You should assign a string to your `botLocation` variable. @@ -52,9 +54,8 @@ assert.equal(botLocation, "the universe"); ```js console.log("Hi there!"); console.log("I am excited to talk to you."); - let bot; -let botLocation; +bot = "teacherBot"; --fcc-editable-region-- diff --git a/curriculum/challenges/english/blocks/workshop-greeting-bot/66ad9c633fa26d3c1475eae3.md b/curriculum/challenges/english/blocks/workshop-greeting-bot/66ad9c633fa26d3c1475eae3.md index 3c3f034b18e..6297da64328 100644 --- a/curriculum/challenges/english/blocks/workshop-greeting-bot/66ad9c633fa26d3c1475eae3.md +++ b/curriculum/challenges/english/blocks/workshop-greeting-bot/66ad9c633fa26d3c1475eae3.md @@ -32,12 +32,10 @@ assert.match(__helpers.removeJSComments(code), /("|')Allow\s+me\s+to\s+introduce ```js console.log("Hi there!"); console.log("I am excited to talk to you."); - let bot; -let botLocation; - bot = "teacherBot"; -botLocation = "the universe"; + +let botLocation = "the universe"; --fcc-editable-region-- diff --git a/curriculum/challenges/english/blocks/workshop-greeting-bot/66ada3f46945763dd97f43f8.md b/curriculum/challenges/english/blocks/workshop-greeting-bot/66ada3f46945763dd97f43f8.md index b13ee2ed0c5..e82c0037d65 100644 --- a/curriculum/challenges/english/blocks/workshop-greeting-bot/66ada3f46945763dd97f43f8.md +++ b/curriculum/challenges/english/blocks/workshop-greeting-bot/66ada3f46945763dd97f43f8.md @@ -67,12 +67,10 @@ assert.match(__helpers.removeJSComments(code), /console\.log\s*\(\s*botIntroduct ```js console.log("Hi there!"); console.log("I am excited to talk to you."); - let bot; -let botLocation; - bot = "teacherBot"; -botLocation = "the universe"; + +let botLocation = "the universe"; console.log("Allow me to introduce myself."); diff --git a/curriculum/challenges/english/blocks/workshop-greeting-bot/66adb844118ba74107ce771f.md b/curriculum/challenges/english/blocks/workshop-greeting-bot/66adb844118ba74107ce771f.md index dc880434a18..ef82f1f8558 100644 --- a/curriculum/challenges/english/blocks/workshop-greeting-bot/66adb844118ba74107ce771f.md +++ b/curriculum/challenges/english/blocks/workshop-greeting-bot/66adb844118ba74107ce771f.md @@ -56,12 +56,10 @@ assert.match(__helpers.removeJSComments(code), /console\.log\s*\(\s*botLocationS ```js console.log("Hi there!"); console.log("I am excited to talk to you."); - let bot; -let botLocation; - bot = "teacherBot"; -botLocation = "the universe"; + +let botLocation = "the universe"; console.log("Allow me to introduce myself."); diff --git a/curriculum/challenges/english/blocks/workshop-greeting-bot/66adbc8a9793d64250f7e609.md b/curriculum/challenges/english/blocks/workshop-greeting-bot/66adbc8a9793d64250f7e609.md index 29860ae1870..9cefeef7348 100644 --- a/curriculum/challenges/english/blocks/workshop-greeting-bot/66adbc8a9793d64250f7e609.md +++ b/curriculum/challenges/english/blocks/workshop-greeting-bot/66adbc8a9793d64250f7e609.md @@ -34,12 +34,10 @@ assert.strictEqual(bot, "professorBot"); ```js console.log("Hi there!"); console.log("I am excited to talk to you."); - let bot; -let botLocation; - bot = "teacherBot"; -botLocation = "the universe"; + +let botLocation = "the universe"; console.log("Allow me to introduce myself."); diff --git a/curriculum/challenges/english/blocks/workshop-greeting-bot/66adc42868cab843ccee87d9.md b/curriculum/challenges/english/blocks/workshop-greeting-bot/66adc42868cab843ccee87d9.md index be237a28b09..f97a95c6902 100644 --- a/curriculum/challenges/english/blocks/workshop-greeting-bot/66adc42868cab843ccee87d9.md +++ b/curriculum/challenges/english/blocks/workshop-greeting-bot/66adc42868cab843ccee87d9.md @@ -56,12 +56,10 @@ assert.match(__helpers.removeJSComments(code), /console\.log\s*\(\s*nicknameIntr ```js console.log("Hi there!"); console.log("I am excited to talk to you."); - let bot; -let botLocation; - bot = "teacherBot"; -botLocation = "the universe"; + +let botLocation = "the universe"; console.log("Allow me to introduce myself."); diff --git a/curriculum/challenges/english/blocks/workshop-greeting-bot/66adc5919c1853448f119d11.md b/curriculum/challenges/english/blocks/workshop-greeting-bot/66adc5919c1853448f119d11.md index a0a08de4ada..b5dfc021a4e 100644 --- a/curriculum/challenges/english/blocks/workshop-greeting-bot/66adc5919c1853448f119d11.md +++ b/curriculum/challenges/english/blocks/workshop-greeting-bot/66adc5919c1853448f119d11.md @@ -26,12 +26,10 @@ assert.strictEqual(bot, "awesomeTeacherBot"); ```js console.log("Hi there!"); console.log("I am excited to talk to you."); - let bot; -let botLocation; - bot = "teacherBot"; -botLocation = "the universe"; + +let botLocation = "the universe"; console.log("Allow me to introduce myself."); diff --git a/curriculum/challenges/english/blocks/workshop-greeting-bot/66adc6046acc18453decf577.md b/curriculum/challenges/english/blocks/workshop-greeting-bot/66adc6046acc18453decf577.md index 1e6dffc7d10..5a7dc14d914 100644 --- a/curriculum/challenges/english/blocks/workshop-greeting-bot/66adc6046acc18453decf577.md +++ b/curriculum/challenges/english/blocks/workshop-greeting-bot/66adc6046acc18453decf577.md @@ -56,12 +56,10 @@ assert.match(__helpers.removeJSComments(code), /console\.log\s*\(\s*newNicknameG ```js console.log("Hi there!"); console.log("I am excited to talk to you."); - let bot; -let botLocation; - bot = "teacherBot"; -botLocation = "the universe"; + +let botLocation = "the universe"; console.log("Allow me to introduce myself."); diff --git a/curriculum/challenges/english/blocks/workshop-greeting-bot/66adc82170acb1464bd348eb.md b/curriculum/challenges/english/blocks/workshop-greeting-bot/66adc82170acb1464bd348eb.md index 28c02f8016c..939e65179fd 100644 --- a/curriculum/challenges/english/blocks/workshop-greeting-bot/66adc82170acb1464bd348eb.md +++ b/curriculum/challenges/english/blocks/workshop-greeting-bot/66adc82170acb1464bd348eb.md @@ -38,12 +38,10 @@ assert.strictEqual(favoriteSubject, "Computer Science"); ```js console.log("Hi there!"); console.log("I am excited to talk to you."); - let bot; -let botLocation; - bot = "teacherBot"; -botLocation = "the universe"; + +let botLocation = "the universe"; console.log("Allow me to introduce myself."); diff --git a/curriculum/challenges/english/blocks/workshop-greeting-bot/66adcf383276814776aba3ca.md b/curriculum/challenges/english/blocks/workshop-greeting-bot/66adcf383276814776aba3ca.md index 1b4e61f22e0..7d6d58f525e 100644 --- a/curriculum/challenges/english/blocks/workshop-greeting-bot/66adcf383276814776aba3ca.md +++ b/curriculum/challenges/english/blocks/workshop-greeting-bot/66adcf383276814776aba3ca.md @@ -54,12 +54,10 @@ assert.match(__helpers.removeJSComments(code), /console\.log\s*\(\s*favoriteSubj ```js console.log("Hi there!"); console.log("I am excited to talk to you."); - let bot; -let botLocation; - bot = "teacherBot"; -botLocation = "the universe"; + +let botLocation = "the universe"; console.log("Allow me to introduce myself."); diff --git a/curriculum/challenges/english/blocks/workshop-greeting-bot/66add47d27763c4862492c8c.md b/curriculum/challenges/english/blocks/workshop-greeting-bot/66add47d27763c4862492c8c.md index 57c7161b0df..8b62a2ec35f 100644 --- a/curriculum/challenges/english/blocks/workshop-greeting-bot/66add47d27763c4862492c8c.md +++ b/curriculum/challenges/english/blocks/workshop-greeting-bot/66add47d27763c4862492c8c.md @@ -33,12 +33,10 @@ assert.match(__helpers.removeJSComments(code), /console\.log\s*\(\s*["']Well\s*, ```js console.log("Hi there!"); console.log("I am excited to talk to you."); - let bot; -let botLocation; - bot = "teacherBot"; -botLocation = "the universe"; + +let botLocation = "the universe"; console.log("Allow me to introduce myself.");