ING Bank Client Interview Questions
1. Write a function to Filter, Sort and display final products with only relevant fields const products = [ {id:1, name: "Laptop", category: "electronics", price: 1000}, {id:2, name: "Shirt", category: "fashion", price: 1000}, {id:3, name: "Phone", category: "electronics", price: 1000}, {id:4, name: "Shoes", category: "fashion", price: 1000}, {id:5, name: "Headphones", category: "electronics", price: 1000}, ] Requirements: i. Filter products by category (e.g., "electronics"). ii. Sort the filtered products by price in ascending order. iii. Make a new array with the final products to display only relevant details like "name" and "price". ------------------------------------------------------------------------------------------------------------------------- 2. Write a function to check whether an array contains any duplicate values. Return true if duplicates...