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
// First, print out the dna strand in it's current state.
6
-
6
+
console.log(dna)
7
7
//1) Use the .trim() method to remove the leading and trailing whitespace, then print the result.
8
8
9
-
console.log(/* Your code here. */);
9
+
console.log(dna.trim());
10
10
11
11
//2) Change all of the letters in the dna string to UPPERCASE, then print the result.
12
12
13
-
console.log();
13
+
console.log(dna.toUpperCase());
14
14
15
15
//3) Note that after applying the methods above, the original, flawed string is still stored in dna. To fix this, we need to reassign the changes to back to dna.
16
16
//Apply these fixes to your code so that console.log(dna) prints the DNA strand in UPPERCASE with no whitespace.
0 commit comments