Oscar Hernandez

@oscarhernandez6 (0)
Student on Free Code Camp. HTML Css Js.
oscarhernandez6 (0)
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(...
oscarhernandez6 (0)
*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...
oscarhernandez6 (0)
Intermediate Algorithm Scripting: Map the Debris
//https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures/intermediate-algorithm-scripting/map-the-debris// /*Intermediate Algori...
oscarhernandez6 (0)
Steamroller Intermediate Algorithm Scripting FCC
/*Intermediate Algorithm Scripting: Steamroller Flatten a nested array. You must account for varying levels of nesting.*/ function steamrollArray(arr)...
oscarhernandez6 (0)
HTML entities FCC intermediate algorithms
function convertHTML(str) { var args = ["\""]; var arr1 = str.replace("&", "&amp;").replace("<", "&lt;").replace("<", "&lt;").replace(args, "&quot;")....
oscarhernandez6 (0)
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...
oscarhernandez6 (0)
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...
oscarhernandez6 (0)
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)...
oscarhernandez6 (0)
Spin latin Two solutions
function translatePigLatin(str) { var result; var total; var arr =[]; var arr1=[]; var arr2=[]; var arr3=[]; var arr4 =[]; var arr5=[]; var...
oscarhernandez6 (0)
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 =...
oscarhernandez6 (0)
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[...
oscarhernandez6 (0)
Diff Two arraays
function diffArray(arr1, arr2) { var odd = arr1.concat(arr2) var newArr = odd.filter(function(item){ return arr2.indexOf(item) =...
oscarhernandez6 (0)
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; }...
oscarhernandez6 (0)
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...
oscarhernandez6 (0)
PigLatin my solutions
this is my solution, piglatin, I am new in programming.