ill will be thankful for lifetime if u answer these simple two questions i request you please help me with both questions please please Food Order...


ill will be thankful for lifetime if u answer these simple two questions


i request you please help me with both questions please please


Question: 8<br>Which of the following should be written in the following program in place of //WHAT GOES HERE? to show an alert that tells the user what<br>their food and drink order was?<br>export default class App extends Component {<br>state = {<br>foodOrder: 'burger'<br>drinkorder: 'root beer'<br>}<br>render() {<br>return (<br><View style={styles.container}><br><Text style={styles.title}><br>Food Order<br></Text><br><TextInput style={styles.textInput}<br>onChangeText={(foodOrder) => this.setState({foodOrder})}<br>value={this.state.foodOrder}<br>/><br><Text style={styles.title}><br>Drink Order<br></Text><br><TextInput style={styles.textInput}<br>onChangeText={(drinkOrder) => this.setState({drinkOrder})}<br>value={this.state.drinkOrder}<br>/><br><TouchableHighlight style={styles.button}<br>onPress={() => {<br>alert( //WHAT GOES HERE? )<br>}}><br><Text style={styles.buttonText}><br>Submit<br></Text><br></TouchableHighlight><br></View><br>);<br>}<br>}<br>
and a ' + drinkorder "You have ordered a ’ + {foodOrder} + and a + {drinkOrder} "/>
Extracted text: Question: 8 Which of the following should be written in the following program in place of //WHAT GOES HERE? to show an alert that tells the user what their food and drink order was? export default class App extends Component { state = { foodOrder: 'burger' drinkorder: 'root beer' } render() { return ( Food Order this.setState({foodOrder})} value={this.state.foodOrder} /> Drink Order this.setState({drinkOrder})} value={this.state.drinkOrder} /> { alert( //WHAT GOES HERE? ) }}> Submit ); } } "You have ordered a ' + this.state.foodOrder +' and a + this.state.drinkOrder 'You have ordered a + {this.state.foodOrder} + and a + {this.state.drinkOrder} "You have ordered a ' + foodOrder + > and a ' + drinkorder "You have ordered a ’ + {foodOrder} + and a + {drinkOrder}
Question: 5<br>What will happen when the program below is run?<br>export default class App extends Component {<br>state = {<br>foodOrder: 'burger'<br>drinkorder: 'root beer'<br>}<br>render() {<br>return (<br><View style={styles.container}><br><Text style={styles.title}><br>Food Order<br></Text><br><TextInput style={styles.textInput}<br>onChangeText={(food0rder) => this.setState({foodOrder})}<br>value={this.state.food0rder}<br>/><br><Text style={styles.title}><br>Drink Order<br></Text><br><TextInput style={styles.textInput}<br>onChangeText={(drinkOrder) => this.setState({drinkOrder})}<br>value={this.state.drinkOrder}<br>/><br></View><br>);<br>}<br>Two text boxes will be shown on the screen. The box with the title 'Food Order' will<br>initially show 'burger' and the box with the title 'Drink Order' will initially show 'Root<br>Beer'.<br>The program will not run because there is an error.<br>Two text boxes will be shown on the screen. The box with the title 'Food Order' will<br>initially show 'foodOrder' and the box with the title 'Drink Order' will initially show<br>'drinkOrder'.<br>Two text boxes will be shown on the screen. Both text boxes will initially be blank.<br>

Extracted text: Question: 5 What will happen when the program below is run? export default class App extends Component { state = { foodOrder: 'burger' drinkorder: 'root beer' } render() { return ( Food Order this.setState({foodOrder})} value={this.state.food0rder} /> Drink Order this.setState({drinkOrder})} value={this.state.drinkOrder} /> ); } Two text boxes will be shown on the screen. The box with the title 'Food Order' will initially show 'burger' and the box with the title 'Drink Order' will initially show 'Root Beer'. The program will not run because there is an error. Two text boxes will be shown on the screen. The box with the title 'Food Order' will initially show 'foodOrder' and the box with the title 'Drink Order' will initially show 'drinkOrder'. Two text boxes will be shown on the screen. Both text boxes will initially be blank.
Jun 04, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here