This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Ejercicio 1 | |
const count = (str, char) => { | |
console.log(`Recibidos ${str} y ${char}`); | |
let result = 0; | |
for (let index = 0; index < str.length; index++) { | |
if (char == str[index]) { | |
result++; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const navSlide = () => { | |
const burguer = document.querySelector('.burguer'); | |
const nav = document.querySelector('.nav-links'); | |
const navLinks = document.querySelectorAll('.nav-links li'); | |
//Toggle Nav | |
burguer.addEventListener('click', () => { | |
nav.classList.toggle('nav-active'); | |
//Animate Links |