The Fibonacci sequence/series is a set of numbers that starts with a one (1) or a zero (0), followed by a one, and proceeds based on the rule that each number is equal to the sum of the preceding two numbers. If the Fibonacci sequence is denoted F (n), where n is the first term in the sequence, the following equation obtains for n = 0, where the first two terms are defined as 0 and 1 by convention:
Category: Programming Languages
Find out if you can reach the last tile – Program Code
There are a number of tiles on the floor, each numbered with a different non-negative integer. Treat this set of tiles as an array. You are initially standing on the first tile. Each tile in the set represents your maximum jumping distance at that position. (Ex: If you are standing on 3 you can jump…
Arrow Functions in JavaScript – Example Code
What is the arrow function in JavaScript? Arrow functions were introduced in ES6 and it provides a simple way to declare functions in JavaScript. It allows us to create functions in a cleaner way compared to regular functions. In this tutorial, we will learn arrow functions and also we will convert normal functions to arrow…
Basic JavaScript Concepts – The Journey Towards JavaScript
JavaScript is a Scripting language and it is an interpreted language. So we do not need to compile the JavaScript code. It is often called JS. It was developed to make websites more interactive and user-friendly. With the help of javascript, we can do many things on the browser window like: change any text, change any font color, or send requests to the server without reloading the web page. In javascript, we simply create functions and call them. JavaScript is similar to other programming languages but also javascript provides some additional features that other languages do not provide.