Source identity
| Field | Recorded value |
|---|---|
| Source type | GitHub source |
| Original record | Janady13/School-Work / School Work/School-Work/School Work/Some and Every Java Practice/index.js |
| Date | Not specified in source |
| Repository | Janady13/School-Work |
| Revision | 4a666c890caf7c43c47d0572dbcc287373c7a78e |
| Branch | main |
| Path or archive member | School Work/School-Work/School Work/Some and Every Java Practice/index.js |
| Original SHA-256 | cf804092ac5083c775dab82e7e4964df96ca13ae14b1a48ce3f880d9be70b31a |
| Git blob SHA | e8ab2830a3a50cf9b43eff519ff1c7cb9196b3dc |
| Reading-copy SHA-256 | cf804092ac5083c775dab82e7e4964df96ca13ae14b1a48ce3f880d9be70b31a |
Every recorded occurrence
These 2 records contain identical original source bytes. Their paths and revisions remain part of the archive.
| Original record | Branch or archive | Revision / identifier | Original location |
|---|---|---|---|
| Janady13/School-Work / School Work/School-Work/School Work/Some and Every Java Practice/index.js | main | 4a666c890caf7c43c47d0572dbcc287373c7a78e | Open original |
| Janady13/School-Work / School Work/Some and Every Java Practice/index.js | main | 4a666c890caf7c43c47d0572dbcc287373c7a78e | Open original |
Recovered source transcript
Download complete source text ↓22 lines · 0.8 KB
// Challenge:
// Here's a list of 5 most popular songs on Spotify.
// 1) Check if any song has won a Grammy
// 2) Check if all the songs were streamed for at least 1.5 million times
// Note: the timesStreamed value is already in million
const songs = [
{song: "Shape of You", timesStreamed: 2.384, wonGrammy: true},
{song: "One Dance", timesStreamed: 1.791, wonGrammy: false},
{song: "Rockstar", timesStreamed: 1.781 , wonGrammy: false},
{song: "Closer", timesStreamed: 1.688, wonGrammy: false},
{song: "Thinking Out Loud", timesStreamed: 1.551, wonGrammy: true}
]
const result = songs.some(song => song.wonGrammy);
console.log(result)
const result1 = songs.every(song => song.timesStreamed > 1.6)
console.log(result1)
const allMegaHits = songs.every(song => song.timesStreamed > 1.5);
console.log(allMegaHits);