Source identity
| Field | Recorded value |
|---|---|
| Source type | GitHub source |
| Original record | Janady13/School-Work / School Work/Perform Actions on All Elements/index.js |
| Date | Not specified in source |
| Repository | Janady13/School-Work |
| Revision | 4a666c890caf7c43c47d0572dbcc287373c7a78e |
| Branch | main |
| Path or archive member | School Work/Perform Actions on All Elements/index.js |
| Original SHA-256 | 00b884fc04858a90421c5721bd98f2a022a01e8435f5f6376e4434b4d4c7bf30 |
| Git blob SHA | 52b8b415ebfaadd36fbda6089a29b7e279e5ae85 |
| Reading-copy SHA-256 | 00b884fc04858a90421c5721bd98f2a022a01e8435f5f6376e4434b4d4c7bf30 |
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/Perform Actions on All Elements/index.js | main | 4a666c890caf7c43c47d0572dbcc287373c7a78e | Open original |
| Janady13/School-Work / School Work/School-Work/School Work/Perform Actions on All Elements/index.js | main | 4a666c890caf7c43c47d0572dbcc287373c7a78e | Open original |
Recovered source transcript
Download complete source text ↓36 lines · 1.4 KB
const temperatures = [
{ degrees: 69, isRecordTemp: false },
{ degrees: 18, isRecordTemp: false},
{ degrees: 73, isRecordTemp: false },
{ degrees: 64, isRecordTemp: false },
{ degrees: 24, isRecordTemp: false },
{ degrees: 44, isRecordTemp: false },
{ degrees: 24, isRecordTemp: false },
{ degrees: 100, isRecordTemp: false },
{ degrees: 110, isRecordTemp: false }
];
temperatures.map(temperature =>
temperature.degrees > 70 ? { ...temperature, isHigh: true } : temperature
).forEach(temperature => {
if (temperature.isHigh) {
console.log(`Temperature ${temperature.degrees} was a record high last week!`);
}
})
temperatures.map(temperature => temperature.degrees >= 32 ? {...temperature, iscold: true } : temperature).forEach(temperature =>{
if (temperature.iscold){
console.log(`Temperature ${temperature.degrees} was tolerable last week last week!`);
}
})
temperatures.map(temperature => temperature.degrees < 32 ? {...temperature, isfreezing: true} : temperature).forEach(temperature => {
if (temperature.isfreezing){
console.log(`Temperature ${temperature.degrees} was freezing last week.,!`);
}
})
temperatures.map( temperature => temperature.degrees >= 100 ? {...temperature, istoHot: true} : temperature).forEach(temperature =>{
if (temperature.istoHot){console.log(`Temperature ${temperature.degrees} is to hot to be outside. Drink plenty of water.`)}
})