Skip to content

Javascript Certification#24

Open
codebydoble wants to merge 10 commits intofull-stack-structurefrom
javascript-certification
Open

Javascript Certification#24
codebydoble wants to merge 10 commits intofull-stack-structurefrom
javascript-certification

Conversation

@codebydoble
Copy link
Owner

Javascript Certification

This course teaches you core JavaScript programming concepts such as working with variables, functions, objects, arrays, and control flow. You'll also learn how to manipulate the DOM, handle events, and apply techniques like asynchronous programming, functional programming, and accessibility best practices.

To earn your JavaScript Certification:

  • Complete the five required projects to qualify for the certification exam.

  • Pass the JavaScript Certification exam.

Variables and Strings

Build a JavaScript Trivia Bot

Objective: Fulfill the user stories below and get all the tests to pass to complete the lab.

User Stories:

  1. You should log "Hello! I'm your coding fun fact guide!" to the console as a greeting message to the user.
  2. You should create three variables: botName, botLocation, and favoriteLanguage, that store the bot's name, where it's from, and its favorite coding language, respectively.
  3. You should log "My name is (botName) and I live on (botLocation)." to the console.
  4. You should log "My favorite programming language is (favoriteLanguage)." to the console.
  5. You should use let to create a codingFact variable and assign it a string that is a fun fact about your bot's favorite coding language and include the use of the favoriteLanguage variable.
  6. You should log the codingFact to the console.
  7. You should reassign the codingFact variable to a new fact about the bot's favorite language using the favoriteLanguage variable again.
  8. You should log the codingFact to the console again.
  9. You should reassign the codingFact variable again to another new fact about the bot's favorite language using the favoriteLanguage variable.
  10. You should log the codingFact to the console a third time.
  11. You should log "It was fun sharing these facts with you. Goodbye! - (botName) from (botLocation)." to the console as a farewell statement from the bot.

Build a Sentence Maker

In this lab, you will create two different stories using a sentence template. You will use variables to store different parts of the story and then output the stories to the console.

Objective: Fulfill the user stories below and get all the tests to pass to complete the lab.

User Stories:

  1. You should declare the following variables using let:

    • adjective
    • noun
    • verb
    • place
    • adjective2
    • noun2
  2. You should assign the above variables some string values of your choice.

  3. You should declare a firstStory variable.

  4. You should use the following story template to create the first story and assign it to the firstStory variable: "Once upon a time, there was a(n) [adjective] [noun] who loved to eat [noun2]. The [noun] lived in a [place] and had [adjective2] nostrils that blew fire when it was [verb].";

  5. You should output your first story to the console using the message "First story: [firstStory]".

  6. You should assign new values to your adjective, noun, verb, place, adjective2, and noun2 variables.

  7. You should declare a secondStory variable.

  8. Create another story using the same template and assign it to the secondStory variable.

  9. You should output your second story to the console using the message "Second story: [secondStory]".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant