analyzeSentiment = function(reviews) {
    // Arrays of positive and negative words
    const positiveWords = ["good", "excellent", "perfect", "cool"];
    const negativeWords = ["bad", "terrible", "horrible"];

    // Store sentiment score
    let score = 0;

    // Loop through each review
    reviews.forEach(review => {
      positiveWords.forEach(word => { if (review.includes(word)) score += 1; });
      negativeWords.forEach(word => { if (review.includes(word)) score -= 1; });
    });

    if (score > 0) {
      return "Positive";
    } else if (score < 0) {
      return "Negative";
    } else {
      return "Neutral";
    }
  }
analyzeSentiment: Analyze the sentiment of the reviews of the entered texts