Skip to content

Instantly share code, notes, and snippets.

@Bijesse
Created July 24, 2014 20:49
Show Gist options
  • Save Bijesse/e84d816093a04b0f9098 to your computer and use it in GitHub Desktop.
Save Bijesse/e84d816093a04b0f9098 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<meta charset="string challenge">
<title>String challenge</title>
</head>
<body>
</body>
</html>
var dory = "Hey, look, balloons. It is a party.";
console.log(dory.length);
console.log(dory.charAt(30));
console.log(dory.slice(0,20));
console.log(dory.slice(21,35));
console.log(dory.toUpperCase());
var sprinkles = dory.replace("balloons", "sprinkles");
console.log(sprinkles);
console.log(dory + " Hey! Who is in charge here?");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment