Module quiz: navigation, updating and assets in React.js

A passionate full-stack developer from @ePlus.DEV
Search for a command to run...

A passionate full-stack developer from @ePlus.DEV
No comments yet. Be the first to comment.
In this module you will explore the basic structure and use of the React.js library. You will learn how to produce single page web applications using React components and to use JSX to style them.
In plain JavaScript, how do you build an instance of the Audio constructor? new Audio(); New Audio(); Audio(); If an object instance of the Audio constructor is saved in a variable named “song”, what property on the “song” object can you use to...
Challenge overview In a challenge lab you’re given a scenario and a set of tasks. Instead of following step-by-step instructions, you will use the skills learned from the labs in the course to figure

Một bản tin giúp Developer cập nhật nhanh AI, Cloud, Open Source và những công nghệ đáng chú ý trong ngày. 📌 Executive Summary OpenAI công bố mười kết quả mới cho các bài toán lâu năm trong toán h

Một bản tin giúp Developer cập nhật nhanh AI, Cloud, Open Source và những công nghệ đáng chú ý trong ngày. 📌 Executive Summary OpenAI công bố mười kết quả mới cho các bài toán lâu năm trong toán h

Một bản tin giúp Developer cập nhật nhanh AI, Cloud, Open Source và những công nghệ đáng chú ý trong ngày. 📌 Executive Summary GitHub thử nghiệm policy theo enterprise team, cho phép cấp thêm mode

Một bản tin giúp Developer cập nhật nhanh AI, Cloud, Open Source và những công nghệ đáng chú ý trong ngày. 📌 Executive Summary OpenAI giảm mạnh giá GPT-5.6 Luna và Terra, đồng thời chuyển Priority

True or false? In React, you can use a ternary operator in a component's return statement in React.
True
False
React Router is...
A built-in part of React-DOM.
A stand-alone package that you can add to a React app.
A built-in part of React.
React Router has a <Link> element.
True
False
Please choose the valid command to install react-player.
npm install react-player
npm-install react-player
npm-install-react-player
True or false? webpack is a module bundler.
True
False
What will be the output of the code below?
let name; if (Math.random() > 0.5) { name = "Mike"} else { name = "Susan"}
It will be 0.5
It will always be Susan
It will always be Mike
It will be sometimes Mike, and sometimes Susan, randomly
Is the following component syntactically correct?
import car from "./assets/images/car.jpg";
function CarImage() {
return (
<img
height={200}
src={car}
alt="Car image"
/>
);
};
export default CarImage;
Yes
No
What is an asset?
Images, stylesheets, fonts
Components
Images, video, and components
What is the syntax used to add a new dev dependency to a React app? Select all that apply.
node init some-package-name
npm install –save-dev some-package-name
npm i –save-dev some-package-name
npm init some-package-name
If your app can compile without it, you can keep an asset in a public folder.
True
False
