title: How to add query param in Cypress (JS)
body: <p>I have to ask for help here. I'm still learning Cypress and trying to add query param to each URL and validate that some modal appears on the page when query param is added. So the way it looks:</p>
  <p>urls = [
  &quot;/en/link1/&quot;,
  &quot;/en/link2/&quot;,
  &quot;/en/link3/&quot;,
  ]</p>
  <p>queryParam = [
  &quot;?param1&quot;,
  &quot;?param2&quot;,
  &quot;?param3&quot;,
  ]</p>
  <p>I need to write code that would do for me</p>
  <ul>
  <li>/en/link1/?param1</li>
  <li>/en/link2/?param1</li>
  <li>/en/link3/?param1</li>
  <li>checkCondition()</li>
  <li></li>
  <li>/en/link1/?param2</li>
  <li>/en/link2/?param2</li>
  <li>/en/link3/?param2</li>
  <li>checkCondition()</li>
  </ul>
  <p>and so on...</p>
  <p>Could you please advise me how to do this? I'd rly appreciate any advice/link to material. Thanks a lot and happy coding!</p>
  <h2>SOLUTION (kudos to @Alapan Das)</h2>
  <pre><code>describe(&quot;My test&quot;, () =&gt; {
    urls.forEach(url =&gt; {
      params.forEach(param =&gt; {
        it(`should check smthng`, () =&gt; {
          cy.visit(url + param)
          cy.checkCondition()
        })
      })
    })
  </code></pre>