Question: help urgent pls JavaScript and PHP are both languages with many aspects inspired by the syntax of the C language. Despite the similarities, the two


JavaScript and PHP are both languages with many aspects inspired by the syntax of the C language. Despite the similarities, the two languages also have several important differences a) Using a short code example for each language, show how the following are done in JavaScript and PHP (4 marks) Declare a new variable named myName Define a value for the variable by assigning it a string value of "John . Add the string 'Smith to the variable to produce a final value of "John Smith ABC e iii III B IU x x I b) There are some tasks that are better suited to client-side scripting. Explain one of these tasks (3 marks) Describe a feature of an online store website that requires client-side scripting. How does this functionality make use of client-side scripting? Why can't this functionality be implemented as a server-side script? u x x III ABC 2 Report que c) There are some tasks that are better suited to server-side scripting. Explain one of these tasks (3 marks) c) There are some tasks that are better suited to server-side scripting. Explain one of these tasks (3 marks) Describe a feature of an online store website that requires server-side scripting. How does this functionality make use of server-side scripting? Why can't this functionality be implemented as a client-side script? B I U x ES III Z AC Report quest Report question issue Onestion and
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
