Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>Document</title>
- </head>
- <body>
- <script>
- let finbonacci=[0,1];
- for(let i=finbonacci.length; i<15;i++)
- {
- let finbonacciNew=finbonacci[i-1]+finbonacci[i-2];
- finbonacci.push(finbonacciNew);
- }
- console.log(finbonacci);
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement