Edberaga (@Coder_Edbert) profile picture

I will always believe in JavaScript

Joined April 2022
Photo by Edberaga (@Coder_Edbert)Photo by Edberaga (@Coder_Edbert)Photo by Edberaga (@Coder_Edbert)Photo by Edberaga (@Coder_Edbert)Photo by Edberaga (@Coder_Edbert)Photo by Edberaga (@Coder_Edbert)Photo by Edberaga (@Coder_Edbert)Photo by Edberaga (@Coder_Edbert)Photo by Edberaga (@Coder_Edbert)Photo by Edberaga (@Coder_Edbert)
For real?
Run your own Netflix. Stream your library privately, for free, forever.
32
Run your own Netflix. Stream your library privately, for free, forever.
26
242
17
3,374
164,982
Just "return ( a === 0)" Would be enough
The ternary operator is very cool 😎👌
51
FREE FREE FREE 9 FREE Books on DSA in Java, C, C++, Python:
10
160
4
1,048
105,882
zenonia 2, DnD baldur gate 1, Wizardry series
This is a very interesting question, it could be any game?
54
This is a very interesting question, it could be any game?
4,539
179
746
2,717
425,256
1K damage~ Ben be smacking those fishes in Port Town. #WizDaphneAdventureMemories
1
89
Holy shit this is a game changer
htmlrev.com is the best choice to find HTML templates and UI components. Built by @webdevluc. Check it out!
44
Day 69: String Primitives and String Object This is string primitive const str1 = "Hello"; const str2 = String("World"); const str3 = `Ed`; console.log(typeof str1, typeof str2, typeof str3); //true true true const str4 = new String("..."); comsole.log(typeof str4); //object
1
42
Edit: console.log(typeof str1, typeof str2, typeof str3); //string string string
24
If you know these 15 websites you could go to prison...
39
27
1
103
65,893
Day 68: Learn the better way to handle errors at fetching API. Instead of using try catch block we can always use ?= Operator. Explanation at the comments. #javascript
4
1
36
This operator ?= Is called Safe Assignment Operator. Used to check if the function got error or success. If it errors it will return for the first value and the second value null. If not error it will return the second value while the first null
22
After looking from the first comment, this is how we use with ?= Operator. const [error, data] ?= await fetch(link).json(); if(error) { console.log(error); } else { console.log("Data succesfully fetched: ", data); } This will do the same of the first comment function
22
This is the usual function to fetch api link async function fetchData() { const res = await fetch(link); try { const data = await res.json(); return data; } catch(err) { console.log("Error: ", err); } }
22
Software engineering is a really tiring career...
1
19
Day 67: Learn about the XOR operation The XOR operation commonly used in algorithm to specify unique values. XOR operation will return 1 if the values are different, but if it's the same it will return 0. for ex: 5 ^ 5 = 0 5 ^ 0 = 5
14
The Job Interview Cheat Sheet🔥
26
14
78
21,160
Day 66: SQL training we can do this SELECT p.pname, p.price, c.cname FROM products AS p INNER JOIN categories AS c ON p.cid = c.id; To this: SELECT p.pname, p.price, c.cname FROM products AS p, categories AS c WHERE p.cid = c.id;
29
Day 65: learn about IIFE Which is stand as Immediately Invoked Function Expression. Its a way to declare a function and immediately execute it. Example: (function () { .... })() (function () { .... }())
32