text: "use strict";
  
  const products = [
      { name: 'Радар', price: 1300, quantity: 4 },
      { name: 'Сканер', price: 2700, quantity: 3 },
      { name: 'Дроид', price: 400, quantity: 7 },
      { name: 'Захват', price: 1200, quantity: 2 },
    ];
    
    const calculateTotalPrice = function(allProdcuts, productName) {
  
      for(let obj of allProdcuts) {
  
          if (obj.name === productName) {
            return obj.price * obj.quantity;
          }
      }
  
    };
    
    /*
     * Вызовы функции для проверки работоспособности твоей реализации.
     */
    console.log(calculateTotalPrice(products, 'Радар')); // 5200
    
    console.log(calculateTotalPrice(products, 'Дроид')); // 2800