Skip to content

Commit 07654bd

Browse files
initial commit
0 parents  commit 07654bd

File tree

12 files changed

+29806
-0
lines changed

12 files changed

+29806
-0
lines changed

.gitignore

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
/.pnp
6+
.pnp.js
7+
8+
# testing
9+
/coverage
10+
11+
# production
12+
/build
13+
14+
# misc
15+
.DS_Store
16+
.env.local
17+
.env.development.local
18+
.env.test.local
19+
.env.production.local
20+
21+
npm-debug.log*
22+
yarn-debug.log*
23+
yarn-error.log*

README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Song Selection
2+
3+
Example of using event-handling, if/else statements, play/pause, and referencing eternal audio (.mp3) tracks to toggle audio on and off.
4+
5+
## Task
6+
7+
1. In this ungraded lab, your goal is to read through the existing code of the App.js file, and update the second button so that it's running the `toggle2` function on a click to the seond button.
8+
2. After adding the `toggle2` function to the JSX expression in the second button's `onClick` event-handling attribute, you should un-comment the bird2 variable on lines 9 to 11.
9+
3. Next, you need to define the `toggle2` function: it should have the exact same functionality as the `toggle1` function, but it needs to work with the `bird2` variable (instead of the `bird1` variable as it does in the `toggle1` function).
10+
11+
## About this React app
12+
13+
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
14+
15+
## Setup
16+
17+
1. Open the built-in terminal
18+
2. Run `npm install` to add the `node_modules` folder
19+
3. Run `npm start`
20+
4. Click the "Open Development server" in the bottom status bar to view the running react app in the browser.

0 commit comments

Comments
 (0)