Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function rot13(str) {
- let regex = /[A-Z]/;
- for(let i = 0; i < str.length; i++){
- if(regex.test(str[i])){
- console.log('Match!');
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement