Question: Which of the following are true regarding Javascript code? ( select only correct answers ) If phrase 1 and phrase 2 are both

Which of the following are true regarding Javascript code? (select only correct answers)
If "phrase1" and "phrase2" are both string variables, you can concatenate them with this code - phrase1+ phrase2
If "phrase1" and "phrase2" are both string variables, you can concatenate them with this code - "phrase1"+ "phrase2"
If the variable named "sentence" is a string, this code will output its value to the screen - document.write("sentence");
If the variable named "sentence" is a string, this code will output its value to the screen - document.write(sentence);

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!