Skip to content

Instantly share code, notes, and snippets.

@vontell
Created January 16, 2018 20:25
Show Gist options
  • Save vontell/43b8a836aeefbf140e6cc9a5aabc412f to your computer and use it in GitHub Desktop.
Save vontell/43b8a836aeefbf140e6cc9a5aabc412f to your computer and use it in GitHub Desktop.
001 Example
function startServer() {
loadValidWords(function() {
console.log("Available words: " + words.length);
var newURL = shortenURL("https://medium.com/365-days-of-coding");
console.log("New URL: " + newURL);
var oldURL = getURLFromShortened(newURL);
console.log("Old URL: " + oldURL);
removeShortenedURL(newURL);
});
}
startServer()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment