Why I don't Use Odd.af Anymore
The last few days, I have been pretty busy migrating my domain from “odd.af” to “ungra.dev”. I posted a bit on Social Media about the story, but I wanted to wrap it up in detail in this blog post.
Welcome to my blog where I write mostly about technical things!
The last few days, I have been pretty busy migrating my domain from “odd.af” to “ungra.dev”. I posted a bit on Social Media about the story, but I wanted to wrap it up in detail in this blog post.
Whether I installed the app image or the Flatpack version of Spotify, I always had issues with the app icon in the window's title bar and the application switch. It fell back to a defaulting x11 icon.
I welcome you to the marvelous world of JavaScript quizzes on Social Media! This very article is part of a series where we deep dive and demystify them. This is a tough one, so this article is a little longer than usual. So let's jump right into the in-depth exploration of constructors in JavaScript!
const c = 'constructor';
c[c][c]('console.log("wth?")')();
Look who managed to head to my blog only to find himself reading an article about a tweeted Javascript quiz. In this series, I try to break such down, and this post features a lesser-known but often useful operator: Nullish Coalescing!
console.log(1 === null ?? 1)
Glad you found this blog series about JavaScript Social Media quizzes! This week is a funny snippet around the loop-manipulating keywords break
and continue
. Get ready for some serious trickery!
for (var i = 1; i < 10; ++i) {
if (i % 3) {
continue;
}
if (i == 7) {
break;
}
console.log(i);
}
Welcome to my blog series about demystifying JavaScript quizzes from Social Media! This time is about a rather basic concept. Let's dive right into the beautiful world of logical operators in JavaScript!
let name1 = " ",
name2 = undefined,
name3 = "ravin",
name4 = "rav",
username = name1 && name2 && name3 && name4;
console.log(username);
Welcome to my dev.to series about my takes on Social Media code challenges! This time it's going to be awesome. You will learn something about an API you use daily: length! You read that correctly. Length. Let's jump right in 👉
const numbers = ['100', '200'];
numbers.length = 0;
console.log(numbers[0]);
Welcome to one of the articles about destructuring a coding quiz from Social Media. This time, we check out a very funny sorting algorithm. Be prepared to order numbers with timeouts!
const numbers = [29, 11, 201, 7, 99, 912, 39, 31];
for (let num of numbers) {
setTimeout(() => console.log(num), num);
}
Welcome to the series about destructuring a JavaScript quiz from Social Media. This Sunday, you'll learn about the one API you should never use: eval.
⚠️ Executing JavaScript from a string is an enormous security risk. It is far too easy for a bad actor to run arbitrary code when you use eval(). Read more at MDN
function challenge(input){
eval(input.toUpperCase())
}
// provide an input that makes function challenge call alert(1)
challenge('alert(1)');
Welcome to the series about destructuring those over-shared JavaScript quizzes on Social Media. Have fun digging into default values!
let year = 2020;
const evolution = (defaultYear = 2000) => {
year = defaultYear;
}
evolution(null);
console.log(year);