Question: Based on the sample code below was the following instructions completed using best practices, correct use of code, and without errors: Declare the following variables.
Based on the sample code below was the following instructions completed using best practices, correct use of code, and without errors:
Declare the following variables. Dont forget to end each line with a semicolon.
A variable called name, with a string value.
A variable called age, with an integer value.
A variable called status, with a Boolean value.
A variable called newage, that contains the result of adding to the contents of age variable above.
A variable called sentence, that contains the contents of the name variable above, with the following string appended to the end: Knows PHP You can concatenate the two strings together, or us variable interpolation.
Assignmentimage.PNG
Directions:
Select each line of code where there is an ERROR, best practices are NOT being followed, or the correct use of code is NOT being followed.
Please Note: Selecting incorrect answers will reduce your overall score. This means that selecting every line will give you a zero.
Group of answer choices
Line
Line
Line
Line
Line
Line
Line
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
