Saved Bookmarks
| 1. |
What is design pattern in JavaScript? Explain |
|
Answer» It’s an advance object-oriented solution designed to solve commonly occurring software problems. These are reusable designs and interact with objects. 22. How to create a function in Javascript?The javascript function is a block of code which can be designed according to the user to PERFORM a PARTICULAR TASK. A basic JavaScript function SYNTAX is MENTIONED below: Examplefunction myFunction(p1, p2) { return p1 * p2; // The function returns the product of p1 and p2 } |
|