
JavaScript Developer.
JavaScript Developer (MERN)┆LinkedIn Instructor┆ Author ┆ Building @DIYBackend @shadowticks┆Disruptor 😎┆ Wealth Babe 💰
- London, United Kingdom
- shalomreact.com
- @shalom_react
Pinned Loading
-
Algorithms
Algorithms PublicAll the Algorithms i will be doing for the 100 Days of Code
JavaScript 1
-
100 Days of Code => Day 11 (vowels)
100 Days of Code => Day 11 (vowels) 1//solution 1...i like this but?
2function vowels(str) {
3let count = 0
4let checker = ['a', 'e','i','o','u']
5for (let key of str.toLowerCase()){
-
100 Days of Code => Day 6 (“chunk”)
100 Days of Code => Day 6 (“chunk”) 1//solution 1
2//i like this one...
3function chunk(array, size) {
4const chunked =[];
5for(let item of array) {
-
100 Days of Code => Day 1 (pyramid)
100 Days of Code => Day 1 (pyramid) 1function pyramid(n) {
2const midpoint = Math.floor((2 * n - 1) / 2);
3for (let row = 0; row < n; row++) {
4let level = '';
5for (let column = 0; column < 2 * n - 1; column++) {
-
100 Days of Code => Day 4 (maxChar)
100 Days of Code => Day 4 (maxChar) 1function maxChar(str) {
2a = {};
3max = 0;
4maxChar = '';
5//looping thur str which is a string
-
100 Days of Code => Day 12 (matrix)
100 Days of Code => Day 12 (matrix) 1///take it bit by bit...really 😫
2function matrix(n) {
3let result = [];
4for (let i = 0; i < n; i++) {
5result.push([]);
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.