Collection of projects I'm doing while working through the Free Code Camp full stack web developer certifications.
- Build a Tribute Page | Requirements | Demo | Source Code
- Build a Personal Portfolio Page | Requirements | Demo | Source Code
function anagrams(a,b){ | |
var count = 0, isAnagram=false; | |
var a1 = a.split("").sort(); | |
var b1 = b.split("").sort(); | |
for(var i=0;i<a1.length;i++){ | |
if(a1[i] !== b1[i]){ | |
count++; | |
} | |
} | |
console.log("hello world!"); |
Collection of projects I'm doing while working through the Free Code Camp full stack web developer certifications.
A Pen by Daniel Williams on CodePen.
// String utils | |
// | |
// resources: | |
// -- mout, https://github.com/mout/mout/tree/master/src/string | |
/** | |
* "Safer" String.toLowerCase() | |
*/ | |
function lowerCase(str){ | |
return str.toLowerCase(); |
var translate = function(word) { | |
var array = word.split(''); | |
var vowels = ['a','e','i','o','u']; | |
var newWord = ''; | |
for(var i = 0; i < vowels.length-1; i++) { | |
for(var y = 0; y < word.length-1; y++) { | |
if(word[y] === vowels[i]) { | |
for(var x = y; x < word.length; x++){ | |
newWord = newWord + word[x]; | |
} |
@Component({ | |
selector: 'app-root', | |
template: ` | |
<ng-template> | |
<button class="tab-button" | |
(click)="login()">{{loginText}}</button> | |
<button class="tab-button" | |
(click)="signUp()">{{signUpText}}</button> | |
</ng-template> |