Top Tweets for #JavaScriptRiddle
Time to flex your brain muscles!πππ½ββοΈ
Can you solve this riddle? I am an object, I only do my job when I'm fired. What am I? Let's see your guesses in the comments!π«£π
Follow for more tech riddles! π€
#JavascriptRiddle #Javascripr #TechTrivia #FunWithTech

π€ 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
For more of my JavaScript Riddles use this: #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
I guess this should have been another #JavaScriptRiddle. For some reason I was sure this was common knowledge. I guess it's because of my C roots
I'm curious: as a #JavaScript / #TypeScript dev, are you familiar with this syntax? Do you know what it does? Have you ever used it?
for ( ; ; ) {
console.log('hello')
}
#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
Blame it on the late hour in which I wrote this #JavaScriptRiddle π
I meant one thing, and ended up asking another. #JavaScript is funny that way!
My intent was to show that a comma can't be used in a numeric literal in JavaScript, due to the behavior of the comma operator. β‘οΈ
#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
#JavaScript #riddle to start the week - what's the output:
function f(first, ...rest) {}
console.log(f.length)
#JavaScriptRiddle
#JavaScript #riddle to end/start the week:
What's the output of
let f, x = {
v: 1,
f() { return this.v }
}
console.log((x.f)())
console.log((f = x.f)())
#JavaScriptRiddle
No takers for my #JavaScript riddle? To clarify, an empty RegExp should match on any string, including empty. Match index and length should both be 0. Must use literal RegExp notation, not "not RegExp". Do you know the answer? #JavaScriptRiddle
#JavaScript riddle for the weekend: how do you implement an empty regular expression without using "new RegExp" ? #JavaScriptRiddle
Last Seen Hashtags on Sotwe
ΰΈ«ΰΈ‘ΰΈΰΈΰΈ΄ΰΈΰΈΰΈ±ΰΈΰΉΰΈ’ΰΉΰΈ
Seen from Thailand
ΰΈΰΈ±ΰΈΰΉΰΈ’ΰΉΰΈΰΉΰΈΰΈ£ΰΈΰΉΰΈΰΈ’
Seen from Thailand
cheapdistro
Seen from United States
henmargames
Seen from United States
istanbulpasif
Seen from Turkey
DesireOfTheDay
Seen from United States
ΩΩΨ―Ψ²Ψ§Ψͺ_ΨΨ΅Ψ±ΩΨ©
Seen from Saudi Arabia
Ψ§ΩΨ¬Ω
jovencita
Seen from United States
ζΆεγγγγͺγ
Most Popular Users

Elon Musk 
@elonmusk
240.1M followers

Barack Obama 
@barackobama
119.3M followers

Donald J. Trump 
@realdonaldtrump
111.6M followers

Cristiano Ronaldo 
@cristiano
108.8M followers

Narendra Modi 
@narendramodi
107M followers

Rihanna 
@rihanna
97.2M followers

NASA 
@nasa
92.1M followers

Justin Bieber 
@justinbieber
90.5M followers

KATY PERRY 
@katyperry
86.8M followers

Taylor Swift 
@taylorswift13
80.6M followers

Lady Gaga 
@ladygaga
72.1M followers

Kim Kardashian 
@kimkardashian
69.4M followers

YouTube 
@youtube
68.6M followers

Virat Kohli 
@imvkohli
68.5M followers

Bill Gates 
@billgates
63.4M followers

The Ellen Show
@theellenshow
62.5M followers

CNN 
@cnn
61.9M followers

Neymar Jr 
@neymarjr
61M followers

X 
@x
60.9M followers

CNN Breaking News 
@cnnbrk
59.9M followers


