Oscar Hernandez

@oscarhernandez6 (0)
Student on Free Code Camp. HTML Css Js.
Search and Replace Intermediate Algorithms free code camp
/*function myReplace(str, before, after) { var result=[]; var arr = after.replace(/john/i, "John" ).replace(/algorithms/i, "Algorithms" ).replace(...
*Intermediate Algorithm Scripting: Arguments Optional
/*Intermediate Algorithm Scripting: Arguments Optional Create a function that sums two arguments together. If only one argument is provided, then retu...
Intermediate Algorithm Scripting: Map the Debris
//https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures/intermediate-algorithm-scripting/map-the-debris// /*Intermediate Algori...
Steamroller Intermediate Algorithm Scripting FCC
/*Intermediate Algorithm Scripting: Steamroller Flatten a nested array. You must account for varying levels of nesting.*/ function steamrollArray(arr)...
HTML entities FCC intermediate algorithms
function convertHTML(str) { var args = ["\""]; var arr1 = str.replace("&", "&amp;").replace("<", "&lt;").replace("<", "&lt;").replace(args, "&quot;")....
Sorted Union FCC Intermediate algorithm
//function uniteUnique(arr, arr1, arr2, arr3) { //var total =arr1.concat(arr2, arr3); console.log(total) // var found = total.filter((x)=> x >= 3); c...
Missing lettler FCC Intermediate Practice
//Intermediate Algorithm Scripting: Missing lettersPassed //Find the missing letter in the passed letter range and return it. //If all letters are p...
DNA pairing free code camp Intermediate Algorithm
function pairElement(str) { var a = /[A-Z]/gi; var b = []; var arr =[]; var x =[]; var args =[]; for(let i=0; i<str.length;i++){ b = str.match(a)...
Spin latin Two solutions
function translatePigLatin(str) { var result; var total; var arr =[]; var arr1=[]; var arr2=[]; var arr3=[]; var arr4 =[]; var arr5=[]; var...
Spintal Tap Case
function spinalCase(str) { var arr =[]; // "It's such a fine line between stupid, and clever." var y = /Allthe/gi; var z = /_/gi; var p =...
seek and destroy
function destroyer(arr) { // Remove all the values var args =[]; var p =[]; var odd=[]; for(let i=0; i<arguments.length; i++){ args.push(arguments[...
Diff Two arraays
function diffArray(arr1, arr2) { var odd = arr1.concat(arr2) var newArr = odd.filter(function(item){ return arr2.indexOf(item) =...
SumAllRange
function sumAll(arr) { var a = arr[0]; var b =arr[1]; var n = (a+b+a+b); var p = (a+b); for(let i=0; i<arr.length;i++){ if(p<=5){ arr = n; }...
ArrayOfMultiples ;
arrayOfMultiples ; Resources; Array.from() length. I figuire out how to solved, take me some hours as new be. https://developer.mozilla.org/en-US/do...
PigLatin my solutions
this is my solution, piglatin, I am new in programming.