// fibonacci series by js
function fibonacci(num) {
if (num == 1)
return 0;
if (num == 2)
return 1;
let num1 = 0;
let num2 = 1;
let sum;
let i = 2;
while (i < num) {
sum = num1 + num2;
num1 = num2;
num2 = sum;
i += 1;
}
return num2;
}
console.log("Fibonacci(5): " + fibonacci(5));
console.log("Fibonacci(8): " + fibonacci(8));đ1
// currySum
function sum(a, b, c) {
return a + b + c;
}
let curry = fn => (a => (b => (c => fn(a, b, c))));
let currySum = curry(sum);
console.log(currySum(1)(2)(3));đ1đ1
Everything related to coding đ
https://t.me/addlist/2UhsQW_cGzkxMzg1
https://t.me/addlist/2UhsQW_cGzkxMzg1
đ2
Apna khud ka Compiler bot run karna ab bahut simple hai
Bas iocompiler lib install karo aur code run kardo đye dekho poori details
https://t.me/logicBots/207
Bas iocompiler lib install karo aur code run kardo đye dekho poori details
https://t.me/logicBots/207
Create compiler bot in mobile
Run any language codes
In hindi:
Ab laptop ko kar do Tata bye bye gya đ
https://youtu.be/352o8B9IikI?si=OSrhBU0mcFEkqILA
Run any language codes
In hindi:
Ab laptop ko kar do Tata bye bye gya đ
https://youtu.be/352o8B9IikI?si=OSrhBU0mcFEkqILA
YouTube
How to create compiler bot and run c/c++ java python node js ts from mobile as server in termux
How to create compiler bot and run c/c++ java python node js ts from mobile as server in termux
Create own compiler bot in 2 minutes
Overview:
In this video, I exaplained You about how to use clone Compiler bot to create your own compiler bot.
keys:âŚ
Create own compiler bot in 2 minutes
Overview:
In this video, I exaplained You about how to use clone Compiler bot to create your own compiler bot.
keys:âŚ
// Api to fetch states of india
const statesURL = 'https://cdn-api.co-vin.in/api/v2/admin/location/states';
require("axios").get(statesURL)
.then(response => {
const states = response.data.states;
console.log('States:', states);
})
.catch(error => {
console.error('Error fetching states:', error.message);
});
// Api to fetch district of states of india
// at last 34 is up state's id to fetch district of up
const statesURL = 'https://cdn-api.co-vin.in/api/v2/admin/location/districts/34';
require("axios").get(statesURL)
.then(response => {
const states = response.data.states;
console.log('States:', states);
})
.catch(error => {
console.error('Error fetching states:', error.message);
});
for(i = 0 ; i < 5; i++){
setTimeout(res=>console.log(i), 0)
}Output of this code ?
const a = "my name is not x"; console.log(a.split().join(", "))
const a = "my name is not x"; console.log(a.split().join(", "))
Anonymous Quiz
35%
m, y, , n, a, m, e, , i, s, , n, o, t, , x
28%
my name is not x
12%
error
25%
my, name, is, not, x
If you want learn js for website development đjoin it
@react_next_js
For any problems in js site development feel free to ask questions đđ
@reactjs_nextjs_group
@react_next_js
For any problems in js site development feel free to ask questions đđ
@reactjs_nextjs_group
What will be answer and why ?
console.log( {"sid":1} == {"sid":1} )
console.log( {"sid":1} == {"sid":1} )
Anonymous Quiz
40%
true
22%
false
22%
error
16%
undefined
đ2
ââââââââââââââââââââââââââââ
Free Study Resources everything join more â https://t.me/addlist/c3QWwWR-Iw4xMDNl
Subscribe Our New channel for coding, designing, hacking and computer related everything đ
đâ https://youtube.com/@CODEBOMBB
ââââââââââââââââââââââââââââ
Free Study Resources everything join more â https://t.me/addlist/c3QWwWR-Iw4xMDNl
Subscribe Our New channel for coding, designing, hacking and computer related everything đ
đâ https://youtube.com/@CODEBOMBB
ââââââââââââââââââââââââââââ
Output?
console.log(i = 3, +i++)
console.log(i = 3, +i++)
Anonymous Quiz
21%
3, 4
13%
undefined 4
23%
3 3
7%
3 4
15%
undefined 3
21%
Error
This media is not supported in your browser
VIEW IN TELEGRAM
đŠâđť Welcome to @CodesSnippet! đŤ
Join us for daily snippets of codingđŠâđť knowledge! đť
Here, you'll find đ bite-sized pieces of code, programming tips, and tricks to level up your coding skills! đť
Stay updated on the latest trends in the tech world and engage with fellow coders đ in our vibrant community! đđŹ
Let's crack the coding đŠâđť together and bring your projects to life!
âď¸đ¨âđť
Lang : Python , Java, Javascript, c++ and many more.
#CodeSnippet
#ProgrammingFun
Já´ÉŞÉ´ á´s :- @CodesSnippet
Join us for daily snippets of codingđŠâđť knowledge! đť
Here, you'll find đ bite-sized pieces of code, programming tips, and tricks to level up your coding skills! đť
Stay updated on the latest trends in the tech world and engage with fellow coders đ in our vibrant community! đđŹ
Let's crack the coding đŠâđť together and bring your projects to life!
âď¸đ¨âđť
Lang : Python , Java, Javascript, c++ and many more.
#CodeSnippet
#ProgrammingFun
Já´ÉŞÉ´ á´s :- @CodesSnippet
Chatting ke liye group
@isc_chat
Ab study group ke bajay is group me off topics discuss karna
Aur jo active hoga vaha use admin bana dunga
@isc_chat
Ab study group ke bajay is group me off topics discuss karna
Aur jo active hoga vaha use admin bana dunga
let a = 10 , b = 10, c = 10;
if(a == b == c)
console.log("lol")
else
console.log("something went wrong!")
if(a == b == c)
console.log("lol")
else
console.log("something went wrong!")
What will be answer of above code
Anonymous Quiz
42%
lol
33%
something went wrong!
22%
Error
3%
no output
Node js full video
https://youtu.be/WW4NZySuL5Y?si=dDLJBTnufUn7Ub1m
After watching it next:
Create telegram bot
Create websites
Create apis
Create apps
And so on...
Topics Covered:
Watch it first at morning 8:30 (Live)
Node js full video
https://youtu.be/WW4NZySuL5Y?si=dDLJBTnufUn7Ub1m
https://youtu.be/WW4NZySuL5Y?si=dDLJBTnufUn7Ub1m
After watching it next:
Create telegram bot
Create websites
Create apis
Create apps
And so on...
Topics Covered:
00:00:00 - Intro of video
00:02:26 - Introduction to node js
00:05:59 - Setup node js environment
00:07:33 - Installing Visual studio Code IDE
00:08:39 - Installing Node js
00:12:58 - Understand about node folder setup
00:15:18 - Basic function of js console.log
00:19:25 - Basic Datatypes of js (Start of basic javascript)
00:25:15 - Variables and Constant in js
00:33:45 - Js Object and List (Array)
00:53:08 - Javascript Operators
01:02:24 - if else Control statement in js
01:08:00 - while and for loops in js
01:17:01 - functions in javascript
01:21:23 - Understand asynchronous javascript
01:26:52 - Understand why async/await in js
01:31:01 - Understand js callback functions
01:36:38 - Use of built in modules in js (example: fs module)
01:40:32 - installing external libraries and fetching data (example axios)
01:48:14 - Anonymous functions in js
01:51:38 - Some of my words for why you learnt this js
Watch it first at morning 8:30 (Live)
Node js full video
https://youtu.be/WW4NZySuL5Y?si=dDLJBTnufUn7Ub1m