#JavaScriptRiddle Etiketinde En Popüler Paylaşımlar
🤖 JavaScript Conundrum! 🧩
To all the coding pros out there, here’s a quick test!
What does typeof null return in JavaScript?
A) ‘null’
B) ‘object’
C) ‘undefined’
Drop your guess in the comments! 📥 No Googling ! 🔍 #JavaScriptRiddle #WebDevTest #KnowYourCode #html #css #javascript
#JavaScript #Riddle what's the output of this code:
class X {
v = 1;
f() { return this.v }
g = () => this.v
}
const x = new X
console.log(x.g())
console.log(x.f())
const f = x.f
const g = x.g
console.log(g())
console.log(f())
#JavaScriptRiddle
#JavaScript #Riddle - haven't had one in a while 🙂 What's the exact output:
const x = {};
x.b = 1;
x[2] = 2;
x[1] = 3;
x[Symbol()] = 4;
x.a = 5;
console.log(...Object.values(x)); // ?
#JavaScriptRiddle
Presented as 6 methods but it's really only 2. Anyway, cool JavaScript riddle but don't ask this in a job interview #JavaScriptRiddle
https://t.co/ERLAJUIWn6
Haven't done one in a while #JavaScriptRiddle
try {
switch (true) {
case 1 < 2:
console.log('hello');
case 2 > 3:
console.log('world');
}
} catch {
console.log('bye');
}
What's the output?
#JavaScript #Riddle
@MichalPorag First, if you enjoy such things, checkout my #javascriptriddle tweets.
Also, since const and let are block-scoped, I hardly use IIFEs anymore.
#JavaScript #Riddle without checking, is this legal and if so what's the value of x:
const x = {...[]}
And is this legal and if so what's the value of y:
const y = [...{}]
#JavaScriptRiddle
#JavaScript #Riddle: what's the output?
function a() {}
function b(x) {}
function c(x = 1) {}
function d(...x) {}
console.log(a.length, b.length, c.length, d.length)
#JavaScriptRiddle
Another #JavaScript #Riddle about the spread operator:
let x;
let y = {...x};
let z = [...x];
What are the values of x, y and z? #JavaScriptRiddle
#JavaScript #Riddle:
const a = [1,2]
const x = {v:1}
const b = [...a]
const y = {...x}
console.log(...b)
console.log(...y)
Is this correct JS? What's the output?
#JavaScriptRiddle
Think you know #JavaScript symbols? How many hellos will this display:
const s = Symbol()
const x = {[s]:'hello'}
console.log(x[s])
for (v in x) console.log(v)
const y = {...x}
console.log(y[s])
console.log(Object.values(y)[0])
#JavaScriptRiddle
#riddle: this is now valid #javascript
const a = 1_000; // a is 1000
But what about:
const b = 1,000;
Is this valid? And if so, what's the value of b? #JavaScriptRiddle
#JavaScript riddle: what's the value of x?
function f() {
try {
return 1;
} finally {
return 2;
}
}
const x = f()
#JavaScriptRiddle #CodingNewbie #100DaysOfCode
@debug_mode @getify To all those he enjoyed figuring out and understanding how and why #JavaScript behaves this way, you may also enjoy the JS riddles I occasionally post. Just check out the hashtag #JavaScriptRiddle Scroll down and see how many you can solve ☺️
@debug_mode @getify To all those he enjoyed figuring out and understanding how and why #JavaScript behaves this way, you may also enjoy the JS riddles I occasionally post. Just check out the hashtag #JavaScriptRiddle Scroll down and see how many you can solve ☺️
#JavaScript #riddle: what's the output and why?
function f() {
console.log(g);
{
function g() {}
}
}
f();
#JavaScriptRiddle
#JavaScript riddle - what's the output:
async function* g() {
yield 1;
yield 2;
}
async function f() {
for await (const v of g()) console.log(v);
console.log(3);
}
f(); f(); console.log(4);
#JavaScriptRiddle
Start your #JavaScript programming day with a bit of fun and learning: my @JSCampRo talk "JavaScript Riddles For Fun And Profit" https://t.co/eChnu8yqtW #JavaScriptRiddle
Next month at @JSCampRo I'll be giving #JavaScript Riddles talk. Here's an example - is this valid code, and if so, what's the output:
const a="b"
const {[a]:b}={b:[a]}
console.log(b) // ?
What fun we will have! #JavaScriptRiddle
Silly #JavaScript #Riddle: what's the output of the following code?
var a = [3,2].map(v=>[v])
[1,0].forEach(v=>console.log(v,a))
Running in the console is cheating 😉 #JavaScriptRiddle
Sotwe'de En Son Görülen Etiketler
sstk1000
Son görüldüğü yer United States
daddygirl
swingers
Son görüldüğü yer Turkey
purepositiveenergy
Son görüldüğü yer United States
edit
Son görüldüğü yer Norway
コイズミタエコ2026
Son görüldüğü yer United States
actress() ai() +filter:videos
Son görüldüğü yer Qatar
CaughtOnCamera
Son görüldüğü yer Australia
p3rv()
Son görüldüğü yer United States
rapekink()*********************************************************************
Son görüldüğü yer Thailand
Senin İçin Trendler
En Popüler Kullanıcılar

Elon Musk 
@elonmusk
240.5M takipçi

Barack Obama 
@barackobama
118.7M takipçi

Cristiano Ronaldo 
@cristiano
114.4M takipçi

Donald J. Trump 
@realdonaldtrump
111.8M takipçi

Narendra Modi 
@narendramodi
107M takipçi

Rihanna 
@rihanna
98.7M takipçi

NASA 
@nasa
92.2M takipçi

Justin Bieber 
@justinbieber
91.8M takipçi

KATY PERRY 
@katyperry
90M takipçi

Taylor Swift 
@taylorswift13
84M takipçi

Lady Gaga 
@ladygaga
75.5M takipçi

Virat Kohli 
@imvkohli
73.4M takipçi

Kim Kardashian 
@kimkardashian
70.8M takipçi

YouTube 
@youtube
68.7M takipçi

Neymar Jr 
@neymarjr
66.3M takipçi

Bill Gates 
@billgates
65.2M takipçi

Selena Gomez 
@selenagomez
63M takipçi

The Ellen Show
@theellenshow
62.1M takipçi

CNN 
@cnn
61.7M takipçi

X 
@x
60.6M takipçi


