This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-16"?> | |
<?xml-stylesheet type="text/xsl" href="ActivityLog.xsl"?> | |
<activity> | |
<entry> | |
<record>1</record> | |
<time>2016/09/30 19:28:07.417</time> | |
<type>Information</type> | |
<source>VisualStudio</source> | |
<description>Microsoft Visual Studio 2015 version: 14.0.25420.1</description> | |
</entry> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let arr = [1,2,3,4,5] | |
arr.push(6) | |
console.log(arr) | |
// Expected output: [1,2,3,4,5,6] | |
let arrClone = arr.push(7) | |
console.log(arrClone) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let arr = [1,2,3,4,5] | |
arr.concat(6) | |
console.log(arr) | |
// Expected output: [1,2,3,4,5] | |
let arrClone = arr.concat("I am six") | |
console.log(arrClone) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const injuredPlayers = [ | |
"Juan Mata", | |
"Joel Castro Pereira", | |
"Marcos Rojo", | |
"Phil Jones", | |
"Eric Bailly", | |
"Alexis Sánchez", | |
"Anthony Martial", | |
"Cameron Borthwick-Jackson" | |
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const manUTD = [ | |
"David de Gea", | |
"Victor Lindelöf", | |
"Eric Bailly", | |
"Phil Jones", | |
"Marcos Rojo", | |
"Paul Pogba", | |
"Alexis Sánchez", | |
"Juan Mata", | |
"Romelu Lukaku", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
console.log(fitPlayers) | |
// Expected output: | |
// [ 'David de Gea', | |
// 'Victor Lindelöf', | |
// 'Paul Pogba', | |
// 'Romelu Lukaku', | |
// 'Axel Tuanzebe', | |
// 'Scott McTominay', | |
// 'Diogo Dalot' ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const manUTD = [ | |
"David de Gea", | |
"Victor Lindelöf", | |
"Eric Bailly", | |
"Phil Jones", | |
"Marcos Rojo", | |
"Paul Pogba", | |
"Alexis Sánchez", | |
"Juan Mata", | |
"Romelu Lukaku", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let first6Months = ["Jan", "Feb", "March", "April", "May", "June"] | |
console.log(first6Months) | |
// Expected output: [ "June", "May", "April", "March", "Feb", "Jan" ] | |
let first6MonthsClone | |
first6MonthsClone = first6Months.reverse() | |
console.log(first6Months) | |
// Expected output: ["Jan", "Feb", "March", "April", "May", "June"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function returnFitPlayers(allPlayers, injuredPlayers) { | |
let result = allPlayers.filter((player) => { | |
!injuredPlayers.includes(player) | |
}); | |
return result; | |
} | |
// filter through the manUTD team and return players | |
// that are NOT included in the injuredPlayers array | |
const fitPlayers = returnFitPlayers(manUTD, InjuredPlayers) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from 'react'; | |
import './App.css'; | |
import List from './ToDoList'; | |
export default class App extends Component { | |
constructor(props) { | |
super(props); | |
this.state = { | |
term: '', |
OlderNewer