for-coder
434 subscribers
136 photos
62 videos
26 files
160 links
@FORCODERR

@firaflash πŸ‘¨β€πŸ’»
Download 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
😁6πŸ‘2
Anybody else's IG feed going nuts? πŸ”«β˜ οΈπŸ’₯
πŸ‘1πŸ₯΄1
Ramadan MubarakπŸ₯³πŸ₯³πŸŽ‰πŸŽ‰

የ1446 α‹“.αˆ‚ α‹¨αˆ¨αˆ˜α‹³αŠ• α‹ˆαˆ­ αŒ¨αˆ¨α‰ƒ α‰ αˆ˜α‰³α‹¨α‰·α€ ነገ α‰…α‹³αˆœ α‹¨αŠ«α‰²α‰΅ 22/2017 α‹¨α‹ˆαˆ© α‹¨αˆ˜αŒ€αˆ˜αˆͺα‹« α‰€αŠ• αŠ₯αŠ•α‹°αˆšαˆ†αŠ• α‰³α‹α‰‹αˆα‘α‘ πŸŒ™βœ¨

Wishing you a wonderful Ramadan!
❀2
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
23%
false true
10%
true false
50%
true true
13%
false false
4%
error
❀1
αŠ₯αŠ•αŠ³αŠ• ለ129αŠ›α‹ πŸ† የዓዡዋ α‹΅αˆ α‰ α‹“αˆ αŠ α‹°αˆ¨αˆ³α‰½αˆ! πŸ‡ͺπŸ‡ΉπŸŽ‰

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

βš”οΈ Battle of Adwa πŸΉπŸ›οΈ
#W's in the chat
πŸ”₯3
Check out this guy lol
Learning C++ the right way 😭😁🦍
Please open Telegram to view this post
VIEW IN TELEGRAM
🀣9😁2
πŸ”₯ Lynx: A React Native Killer? πŸ”₯

πŸ• 1 min read time
ByteDance just dropped Lynx, a Rust-powered, multi-platform framework that could shake up mobile dev. It ditches React Native’s JavaScript bridge bottlenecks for a dual-threaded UI engine, promising faster load times, smoother UI, and true CSS support.

βœ… Pros: Blazing fast, framework-agnostic (React, Vue, Svelte), real CSS, Rust-powered.
❌ Cons: New & unpolished, small ecosystem, Windows issues.

Lynx looks promising but isn’t quite there yet. Will it replace React Native? Maybe. Are you trying it? πŸš€

read_more
✨To all the incredible women coders lighting up the world like moonlight on a northern streetβ€”keep shining, keep rising, and keep owning your path. πŸŒ™πŸ’ͺ Happy Women's Day!
πŸ’œπŸŽ‰
πŸ‘2
var a = 10;
function foo() {
console.log(a);
var a = 20;
}
foo();
What is the output of the above code
Anonymous Quiz
43%
10
17%
Reference error
31%
20
9%
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
36%
null
17%
error
26%
object
for-coder
What is the output of the above code
Hint:

It is still a bug πŸ›, hasn't been fixed
I'll talk about it later
πŸ‘1
🚨 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
πŸ‘¨β€πŸ’»1
Two different users of cursor😭
πŸ‘2😒2
This media is not supported in your browser
VIEW IN TELEGRAM
Difference between programmers and @astonhall
😁1
πŸŒ™ Eid Mubarak, Coders ! πŸŽ‰

Wishing you all a joyful and blessed Eid! May this special day bring you happiness, peace, and endless success. Keep coding, keep growing, and enjoy the celebrations! πŸ’™βœ¨

#EidMubarak #ForCoder πŸš€
❀2