Code Monkey home page Code Monkey logo

phase-1-quiz-communicating-with-the-server's Introduction

id course_id repo
42565
6638
phase-1-quiz-communicating-with-the-server

Communicating with the Server Quiz

It's time to check your knowledge! Use this quiz to create a custom study guide. Note any answers that were marked incorrect, so you can study the relevant material and try this quiz again.

If you don't know the answer to a question, please do not guess. Instead, select "I don't know". It's OK not to know everything and to admit when we're unsure.

phase-1-quiz-communicating-with-the-server's People

Contributors

ihollander avatar jlboba avatar lizbur10 avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

phase-1-quiz-communicating-with-the-server's Issues

"Server Quiz" asks re pokeapi.co, but maybe answer is out of date?

Canvas Link

https://learning.flatironschool.com/courses/5185/quizzes/29391

Concern

Question 5 conveniently supplies a link to https://pokeapi.co/ and asks which 'fetch' snippets would work.
It's not obvious from viewing that URL whether we are using the right domain name in the potential answers below to use the API. Trying each of the sample answers in my Console returns an error message complaining of:
No 'Access-Control-Allow-Origin' header is present on the requested resource.

So it seems like none of the suggested answers would allow her to send/log the info.

Question 5:

Yuli is making an application that interacts with the Pokemon API (https://pokeapi.co/). The Pokemon API uses JSON as its response format. Which of the following code snippets would allow her to send a request to the API and log a Pokemon object to the console?
Group of answer choices

fetch("https://pokeapi.co/").then((pokemon) => console.log(pokemon));

fetch("https://pokeapi.co/")
.then((resp) => resp.text())
.then((pokemon) => console.log(pokemon));

I don't know

fetch("https://pokeapi.co/")
.then((resp) => resp.json())
.then((pokemon) => console.log(pokemon));

Additional Context

No response

Suggested Changes

It seems like none of the suggested answers for quiz question 5 would allow Yuli to send/log the info.
Update the question and/or answer?
Maybe I am missing something?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.