title: A script that deletes all the regular files (not the directories) with a .js extension that are in the current directory and its subfolders
body: <p>Write a script that deletes all the regular files (not the directories) with a <code>.js</code> extension that are present in the current directory and all its subfolders.</p>
  <p>The answer should only contain one command after the shebang line, I've tried the following:</p>
  <pre><code>#!/bin/bash
  rm -R *.js 
  </code></pre>
  <p>… and:</p>
  <pre><code>#!/bin/bash
  rm -f *.js
  </code></pre>