Question: Having trouble with these questions, help and explanation would be much appreciated! Question 4 Write a function named getName that accepts two parameters in this

 Having trouble with these questions, help and explanation would be muchappreciated! Question 4 Write a function named getName that accepts two parameters

Having trouble with these questions, help and explanation would be much appreciated!

Question 4 Write a function named getName that accepts two parameters in this order: first and last. The function should concatenate the parameters (with a space between the names) into a new variable (using a template literal string) called name, and return that variable. function getName(first, last) { let name = ${first} ${last} ; return name; } Feedback Incorrect Try again. Question 5 Based on the code below, what is the value of total? function getTotal (subtotal, sales_tax, shipping) { var service_fee = .15; var tax = subtotal * sales_tax; var total = subtotal + tax + shipping; var fee = total * service_fee; total = total + fee; return total; } var total = '$' + getTotal(21, .6, 8); $22.4

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 Databases Questions!