Assume a program only reads .js or .jsx files. Write a function that accepts a file path and returns true if it can read the file and false if it can't.
isJS("/users/user.jsx") ➞ true
isJS("/users/user.js") ➞ true
isJS("/users/user.ts") ➞ false
Use a RegEx boundary assertion in your function.