Javascript Questions
Javascript Questions
Q1- write x3 functions that takes two integers (a, b) and returns their: sum, sub,
mul
Q2 - write x1 function that takes two integers (a, b) and a string (operation) &
decides what operation to do based on operation string: ("add", "sub", "mul")
Q3 - Write a function that takes an array & returns sum of all numbers
Q10 - add a function inside above objects that prints name & age