Skip to content

Instantly share code, notes, and snippets.

View Christonja's full-sized avatar

Christon Christonja

View GitHub Profile
@Christonja
Christonja / main.js
Last active April 9, 2019 12:56
Roman Numeral Converter created by Christonja - https://repl.it/@Christonja/Roman-Numeral-Converter
/*JavaScript Algorithms and Data Structures Projects: Roman Numeral Converter:
Challenge designed by FreeCodeCamp, solution derived from learning obtained thanks to FreeCodeCamp and
with some assistance from other people's solutions on the internet. I'm not willing to take ownership of
the below code beyond that I was on the right track. ie. what is inside the while loop was my own solution.
Function calls provided by FreeCodeCamp as ways to test the algorithm*/
function convertToRoman(num) {
//Two array of the same length accounting for roman numerals and decimal values those roman numerals represent.
var startingNum = num;
var decimal = [ 1000, 900, 500, 400, 100, 90, 50, 40, 10, 9, 5, 4, 1 ];
@Christonja
Christonja / main.js
Last active April 9, 2019 12:55
Caesars Cipher created by Christonja - https://repl.it/@Christonja/Caesars-Cipher
/* JavaScript Algorithms and Data Structures Projects: Caesars Cipher:
Challenge designed by FreeCodeCamp, solution derived completely from my learning obtained thanks to FreeCodeCamp
and other sources on the internet, notably W3Schools.com, function calls provided by FreeCodeCamp as ways to
test the algorithm */
function rot13(str) {
var regex = /[A-Z]/;
var newStr = "";
var char;
//Cycle through the original string
@Christonja
Christonja / main.js
Last active April 9, 2019 12:55
Palindrome Checker created by Christonja - https://repl.it/@Christonja/Palindrome-Checker
/*JavaScript Algorithms and Data Structures Projects: Palindrome Checker:
Challenge designed by FreeCodeCamp, solution derived completely from my learning obtained
thanks to FreeCodeCamp and other sources on the internet, notably W3Schools.com, function calls
provided by FreeCodeCamp as ways to test the algorithm*/
function palindrome(str) {
// Good luck!
//Create a new regexp for checking for alphanumeric characters in string
var regexp = /[0-9a-zA-Z]+/g;
@Christonja
Christonja / arrays-web-dev-bootcamp-christonja.markdown
Last active March 25, 2019 05:06
Arrays - Web Dev Bootcamp - Christonja

Arrays - Web Dev Bootcamp - Christonja

A Pen by Christonja on CodePen.

License.

Arrays exercise on web dev bootcamp by Colt Steele, all my own solutions.