Pinned Loading
-
Dokan
Dokan PublicAn e-commerce website made with React.js, Redux, React-redux, HTML, CSS, JavaScript, Restful API, Axios, Media queries, Node.js, Express.js, Mongoose, MongoDB.
JavaScript
-
Roman numeral converter. (freeCodeCa...
Roman numeral converter. (freeCodeCamp JavaScript algorithms and data structures challenge) 1function convertToRoman(num) {
2var englishArray = [1000000, 500000, 100000, 50000, 10000, 5000, 1000, 900, 500, 400, 100, 90, 50, 40, 10, 9, 5, 4, 1];
34var romanArray = ["M̄", "D̄", "C̄", "L̄", "X̄", "V̄", "M", "CM", "D", "CD", "C", "XC", "L", "XL", "X", "IX", "V", "IV", "I"];
5 -
Palindrome checker. (freeCodeCamp Ja...
Palindrome checker. (freeCodeCamp JavaScript algorithms and data structures challenge) 1function palindrome(str) {
2var newstr = str.replace(/[\W\_]/gi, "").toLowerCase();
34array = newstr.split("").reverse().join("");
5 -
Telephone number validator. (freeCod...
Telephone number validator. (freeCodeCamp JavaScript algorithms and data structures challenge) 1function telephoneCheck(str) {
2var regex1 = /^[0-9]{3}[-][0-9]{3}[-][0-9]{4}$/;
3var regex2 = /^[(][0-9]{3}[)][0-9]{3}[-][0-9]{4}$/;
4var regex3 = /^[(][0-9]{3}[)][\s][0-9]{3}[-][0-9]{4}$/;
5var regex4 = /^[0-9]{3}[\s][0-9]{3}[\s][0-9]{4}$/;
-
Caesars cipher. (freeCodeCamp JavaSc...
Caesars cipher. (freeCodeCamp JavaScript algorithms and data structures challenge) 1function rot13(str) {
2newstr = str.split("");
34var finalstr = newstr.map(function(letter) {
5lettervalue = letter.charCodeAt(0);
-
Cash register. (freeCodeCamp JavaScr...
Cash register. (freeCodeCamp JavaScript algorithms and data structures challenge) 1function checkCashRegister(price, cash, cid) {
2var change = cash - price;
34var coinValues = [
5{ name: 'ONE HUNDRED', val: 100.00 },
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.