for-coder
434 subscribers
103 photos
55 videos
25 files
139 links
@FORCODERR

@firaflash πŸ‘¨β€πŸ’»
Download Telegram
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
#መልካም_α‹¨α†αˆ_αŒŠα‹œ

let fasting = false;

const startDate = new Date();
startDate.setHours(0, 0, 0, 0); //(12:00 AM)

const endDate = new Date("2025-04-20T03:00:00");

const durationInMilliseconds = endDate - startDate;


fasting = true;
console.log("α†αˆ/fasting started.");

// setTimeout to handle the end of the fasting period
setTimeout(() => {
fasting = false; // Set fasting to false after 55 days
console.log("αˆ΅αˆˆαα‰…αˆ© ሲል αŠ¨αˆ™α‰³αŠ• α‰°αˆˆα‹­α‰Ά α‰°αŠαˆ΅α‰·αˆ"); // Log the message
console.log("α†αˆ/fasting ended.");
}, durationInMilliseconds);


If you don't understand this code α‰ α‹°αŠ•α‰₯ ααˆ™ #ሎል_lol
Anybody else's IG feed going nuts? πŸ”«β˜ οΈπŸ’₯
Please open Telegram to view this post
VIEW IN TELEGRAM
const obj1 = { id: 1 };
const obj2 = { id: 1 };
const obj3 = obj1;

console.log(obj1 === obj2);
console.log(obj1 === obj3);
What is the output of the above code
Anonymous Quiz
26%
false true
11%
true false
46%
true true
13%
false false
4%
error
αŠ₯αŠ•αŠ³αŠ• ለ129αŠ›α‹ πŸ† የዓዡዋ α‹΅αˆ α‰ α‹“αˆ αŠ α‹°αˆ¨αˆ³α‰½αˆ! πŸ‡ͺπŸ‡ΉπŸŽ‰

Congratulations on the 129th anniversary of the Victory of Adwa! ✊🏾πŸ”₯

βš”οΈ Battle of Adwa πŸΉπŸ›οΈ
#W's in the chat
Check out this guy lol
Learning C++ the right way 😭😁🦍
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
var a = 10;
function foo() {
console.log(a);
var a = 20;
}
foo();
What is the output of the above code
Anonymous Quiz
43%
10
15%
Reference error
32%
20
10%
Undefined
This media is not supported in your browser
VIEW IN TELEGRAM
Been off lately… had to train my finger to hit Tab professionally πŸ‹οΈβ€β™‚οΈβŒ¨οΈ
#coding_meme@forcoder #codingmeme
 
function yapp(){
console.log(typeof null );
}

yapp();
What is the output of the above code
Anonymous Quiz
21%
undefined
38%
null
17%
error
25%
object
for-coder
What is the output of the above code
Please open Telegram to view this post
VIEW IN TELEGRAM
🚨 JAVASCRIPT HAS A REAL BUG! 🚨


Open your console and type:
typeof null


You'll get:
'object'


That's wrongβ€”null is not an object!

πŸ” How did this happen?

When JavaScript was first implemented, values were stored in a tagged format, where the lower bits determined the type:
- Objects had a type tag of 0.
- null was stored as 0 in memory.

Since null had 0 in its type tag, typeof mistakenly classified it as an "object".

πŸ”§ Why isn't it fixed?
One word: Backward compatibility.
Fixing it would break too many apps, so it's here to stay!

πŸ’¬ Share this with JavaScript haters new (Lovers)... Lmao

#JavaScript #Bug #Programming
Two different users of cursor😭