Day 9: Generate a Fibonacci Sequence in JavaScript | 100 Days of Coding Challenge

Опубликовано: 14 Июнь 2025
на канале: Code with Poonam
330
18

Welcome to Day 9 of our 100 Days of Coding Challenge in JavaScript! 🎉
#codewithpoonam #codewithpoonam

Today’s challenge is all about the Fibonacci sequence! This is a classic programming problem that helps you deepen your understanding of loops and arrays in JavaScript.

Here’s the challenge:
Write a JavaScript function that generates a Fibonacci sequence starting from two given numbers and outputs a specified number of terms.

For example:

If the starting numbers are 0 and 1, and you want to generate 6 terms, the output should be: 0, 1, 1, 2, 3, 5.
If you start with 7 and 20 and request 5 terms, the output should be: 7, 20, 27, 47, 74.
This challenge is a fantastic way to practice your skills in loops, functions, and handling arrays in JavaScript. Give it a shot, and don’t hesitate to share your solutions or any questions you have in the comments below! 💬

Stay tuned for Day 10, where we’ll dive into another exciting coding problem!

Don’t forget to like, subscribe, and hit the notification bell 🔔 so you never miss out on the next challenge. Keep coding, and happy learning!

#100DaysOfCode #JavaScript #CodingChallenge #Day9 #LearnJavaScript #FibonacciSequence #WebDevelopment #JSChallenge #CodeNewbie #DeveloperJourney #ProgrammingChallenge #FrontEndDevelopment #FullStackDevelopment #CodeEveryday #DailyCoding #TechLearning #JavaScriptCoding #CodingJourney #javascript #webdevelopment #JavaScriptTutorials #javascriptfunctions