You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
console.log(rotateCharacter('7',5));// Output: 7 (unchanged, not a letter)
42
+
console.log(rotateCharacter("f",1));// Output: g
43
+
console.log(rotateCharacter("A",3));// Output: D
44
+
console.log(rotateCharacter("z",1));// Output: a
45
+
14
46
15
47
// Scenario: Rotate Lowercase Letters:
16
48
// Given a lowercase letter character and a positive integer shift,
17
49
// When the function is called with these inputs,
18
-
// Then it should rotate the lowercase letter by shift positions within the lowercase alphabet, wrapping around if necessary, and return the rotated lowercase letter as a string.
0 commit comments