Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

rotate13 text in javascript

const rot13Deg = (string) => {
  var a = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
  var b = "nopqrstuvwxyzabcdefghijklmNOPQRSTUVWXYZABCDEFGHIJKLM";
  const newText = string.replace(/[a-z]/gi, (c) => b[a.indexOf(c)]);
  return newText
};
Comment

PREVIOUS NEXT
Code Example
Javascript :: CodePen Home Load iframe on click 
Javascript :: react hook form with controlled input 
Javascript :: opacity material ui 
Javascript :: configure angular router apache 
Javascript :: javascript array erstellen 
Javascript :: es6 arrow function 
Javascript :: json schema eg 
Javascript :: javascript get string byte size 
Javascript :: loop through async javascript -1 
Javascript :: twhat is a js promise 
Javascript :: A fatal JavaScript error has occurred. Should we send an error report 
Javascript :: disable eslint curly option 
Javascript :: if operator ternary 
Javascript :: movement of objects in javascript 
Javascript :: reactjs sweet alert 
Javascript :: check if browser is online 
Javascript :: Using a decrementing For Loop to Reverse an Array 
Javascript :: passport google authentication node js 
Javascript :: react-native-dropdown-picker for form react native 
Javascript :: bash sort json alphabetically 
Javascript :: Monitor in production node js 
Javascript :: Using Props In React: Assigning CSS 
Javascript :: hover on child from parent mui react 
Javascript :: react node-sass 
Javascript :: suitescript get sublist value 
Javascript :: react state not updating immediately 
Javascript :: daysjs 
Javascript :: object.create() js 
Javascript :: d3.js click event 
Javascript :: react fun tion 
ADD CONTENT
Topic
Content
Source link
Name
4+6 =