Web design & ๐Ÿ˜ƒ development
29.3K subscribers
797 photos
35 videos
89 files
830 links
Admin๐Ÿ‘ฎ @sreetamo @Tranjar

Get free resources for webdevelopment , html , CSS , JavaScript , reactjs , wordpress , Php , nodejs ...etc. Buy ads: https://telega.io/c/WebsiteDesignLearningGroup
๐Ÿ‘ฅGroup๐Ÿ‘ฅ @website_DesignLearning_Group
Download Telegram
const obj = {};
let value = 0;

Object.defineProperty(obj, 'prop', {
get() {
return value;
},
set(newValue) {
value = newValue + 1;
},
configurable: true,
enumerable: true
});

obj.prop = 10;
console.log(obj.prop);

๐Ÿ”ดWhat will be the output??
#javascript #quiz
๐Ÿ‘11
const obj = { a: 1, b: 2 };
const proxy = new Proxy(obj, {
get(target, prop) {
return prop in target ? target[prop] : 0;
}
});

console.log(proxy.a, proxy.b, proxy.c);


๐Ÿ’ก What will be output??
๐Ÿ‘8๐Ÿ‘2
โŒจ๏ธ CSS: Align Icon with Text

"cap" is a CSS unit which is equal to the "cap height", that is, the size of the capital letters in a font.

This helps us to easily size icons that lie next to a piece of text to perfectly match the height of the text - no more fiddling around with rem or px units ๐Ÿคฉ

โ“ Question: Do you feel this is a better approach or do you like to define a specific dimension for your items?
๐Ÿ‘21
๐Ÿ”… Guide to learn full-stack web development in 200 days
โค18๐Ÿ‘5
โŒจ๏ธ CSS shortcuts!!

Save time and make your code cleaner with these CSS shortcuts.
๐Ÿ‘17๐Ÿ”ฅ2
๐Ÿ–ฅ Git: Merging vs Rebasing

In git, when there are some changes in a parent branch from which you forked, there are two strategies to incorporate them into your working branch:

โœจ Merging:

As the name suggests, 'merges' the parent branch into your branch. The advantage is that handling conflicts (if any) is easier, since you only need to resolve them for the merge commit once. However, this may make the git history a bit harder to follow

โœจ Rebasing:

Takes all the commits you made in your branch, and applies them on top of the head of the parent branch. As if repositioning the base of the branch.

This helps to create a linear and easy to follow git history, but conflict resolution may be tedious and you need to force push the branch to the origin.
๐Ÿ‘6โค3
๐Ÿ–ฅ What is Debouncing?

What is Debouncing in JavaScript? Another Tricky JavaScript Question.

Often used for search queries as you type or auto-saving drafts while writing.
โค7๐Ÿ‘2
โŒจ๏ธ MomentJS library

It's commonly used for parsing, validating, manipulating, and formatting dates and times in JavaScript. It provides an extensive set of features for working with dates and times, making it easier for developers to handle various date-related tasks in their applications.
๐Ÿ‘7๐Ÿ‘1
โŒจ๏ธ nth Child of Selectors in CSS
โค16๐Ÿ‘11๐Ÿ”ฅ1
This media is not supported in your browser
VIEW IN TELEGRAM
๐ŸŒŸHover effect ๐ŸŒŸ

๐Ÿ‘‰Source code
https://codepen.io/hourwinner/pen/gOaWdNy
๐Ÿ‘7๐Ÿ‘5๐Ÿ”ฅ2๐Ÿ˜ฑ1
CHALLENGE

const func = () => arguments.length;
console.log(func(1, 2, 3));


๐Ÿ”ด What will be the output?? Comment below ๐Ÿ‘‡
๐Ÿ‘Ž4๐Ÿ‘2๐Ÿ”ฅ1
๐Ÿคฃ37๐Ÿ˜7๐Ÿ‘2๐Ÿ”ฅ2
CHALLENGE

const obj1 = { a: 1, b: { c: 2 } };
const obj2 = { ...obj1 };

obj1.b.c = 3;

console.log(obj2.b.c);


๐Ÿ”ดWhat will be output??
โค7๐Ÿ‘7
CHALLENGE

class Parent {
static greet() {
return 'Hello from Parent';
}
}

class Child extends Parent {
static greet() {
return super.greet() + ' and Child';
}
}

const childInstance = new Child();
console.log(childInstance.greet);


๐Ÿ”ด What will be the output??
๐Ÿ‘17๐Ÿ‘Ž5โค2
es-toolkit - a modern JavaScript utility library that's 2-3 times faster and up to 97% smaller, a major upgrade to lodash

#estoolkit #library #package

Read more ๐Ÿ‘‰ https://github.com/toss/es-toolkit
๐Ÿ‘10๐Ÿ”ฅ1
๐Ÿคฃ๐Ÿคฃ๐Ÿคฃ๐Ÿคฃ
๐Ÿคฃ44๐Ÿ˜18๐Ÿ‘2โค1