Skip to content

Instantly share code, notes, and snippets.

View FrancoFrancis's full-sized avatar
🎯
crafting

Francis Etham FrancoFrancis

🎯
crafting
View GitHub Profile
@FrancoFrancis
FrancoFrancis / Essential JavaScript Snippets for Beginners
Last active July 23, 2023 23:54
In this GitHub Gist, you'll find must-have JavaScript code snippets for beginners. These concise and well-commented examples cover fundamental tasks, perfect for learning and applying in your projects.
1) Reverse a String:
// Reverses a given string
function reverseString(str) {
return str.split('').reverse().join('');
}
2) Working with Arrays:
const myArray = [1, 2, 3];