100 Days of JavaScript Coding Challenges || Day #35

preview_player
Показать описание
Welcome, on a 100-day JavaScript journey with me! Join me as I tackle a new coding challenge every day, exclusively using JavaScript. Let's level up our skills together, one problem at a time.

-------------------------------------------------------
📢 Checkout our world best JavaScript Course Part 1 & 2 👇

--------------------------------------------------------
Before Learning JavaScript, Don't forget to watch 👇

-----------------------------------------------------
✌️ Become Member, get access to perks, free Source code, & more..

-----------------------------------------------------

⌚ TIMELINE ⌚
0:00 Introduction to JavaScript in 100 days
0:35 - Problem Intro: Understanding the question.
1:38 - Try It Out: Pause and solve it yourself.
1:50 - Solve Together: Walking through the solution.
3:55 - First Method: Explaining our initial solution.
6:15 - Second Method: A different approach.
7:58 - Watch Next: Recommendations to boost your skills.
Рекомендации по теме
Комментарии
Автор

📢 Checkout our world best JavaScript Course Part 1 & 2 👇


ThapaTechnical
Автор

Day 35 Present Sir . Love & Respect from Pakistan . I am on my journey to be the complete MERN stack developer in 02 months from your channel

owaisnadeem
Автор

const isEmptyObject = (obj) => Object.keys(obj).length === 0;

nitishsingh
Автор

Bro I am a Full Stack Web MERN Developer because of you.

duraidmustafa
Автор

const isEmptyObject = (obj)=>{
let result = "not empty"
const arr = Object.values(obj)
if(arr.length){
if(arr.includes(undefined) || arr.includes(null)) result = "empty"
else result
}
else result = "empty"
console.log(result)
}

isEmptyObject({keasd:498})

kuldeepsinghrathore
Автор

Thank you brother could you give a video of road map of Full stuck web development plz plz

Sharmin-igzy
Автор

if (Object.keys(obj).length === 0) {
return `its empty`
}
return `it's non empty`

shobitkhatri
Автор

Sir I have read your javascript course completely.And even in spite of that I can't create a project..can you help mee😢

MuhammadShakir-fd
Автор

const isEmptyObjevt = (obj) => {
return Object.keys(obj).length === 0 ? "Its empty" : "its not empty"
}

harikrushnapatel
Автор

Yeh konsa theme hai vs code ka kindly name bta dain

m.salmanraja
Автор

sir aapne jab vaalue mai null declare kiya to usme aapne it's empty bataya hi

Mukhtaarb
Автор

const checkobject =obj=> Object.keys(obj).length > 0 ?"Object is not empty ":"Object is empty";
console.log(checkobject({}))

#mysolution

MdSahil-gxf
Автор

// Write a function to check an object is empty or not
const isEmptyObject = (obj) => {
return Object.keys(obj).length === 0;
};


console.log(isEmptyObject({ name: "Abdullah" }));
console.log(isEmptyObject({ rollNo: 57 }));

syedabdullah
Автор

const emptyObjetDetector = (object) =>{
let keyarr = []
for (const key in object) {
keyarr.push(key)
}
return keyarr.length < 1 ? "object is empty" : "object is not empty"
}

Tarun-zvzf
Автор

Envato clone html, css & javascript
themeforest clone html, css & javascript
codecanyon clone html, css & javascript

AshikRahman-fwsv
Автор

const isEmptyObject = (object) => {
const newObject = Object.values(object);
return (newObject[0] === undefined || newObject[0] === null) ? "This is empty" : "This is not empty"
};

console.log(
isEmptyObject({ name: "JavaScript" }),
isEmptyObject({ age: 69 }),
isEmptyObject({ ishuman: undefined }),
isEmptyObject({})
);

pxycknomdictator
Автор

function chechkEmpty(object) {


let keyarray = Object.keys(object)

if(keyarray.length === 0 || keyarray[0]==='keywithnull' ||
return "its empty"
}else {
return "its not empty"
}


}

console.log(chechkEmpty({ name: "Vikram" })); //not empty



vikrambais
Автор

const emptyObj = obj =>Object.keys(obj).length > 0 ? "It not empty" : "It is empty";
console.log(emptyObj({}));

goldcommandchannel
Автор

const isEmpty = (obj) => {
let objKey = Object.keys(obj);
if (objKey.length === 0) {
return "its empty";
}

for (let i = 0; i < objKey.length; i++) {
if (!obj[objKey[i]]) {
return "its empty";
}
return "its not empty";
}
};
console.log(isEmpty({}));

rexyn-qq
Автор

const isEmptyObject = (obj)=>{
let entries = Object.entries(obj).flat();
return (entries.length===0)?`${true} object is empty`:`${false} object is not empty`
}

priyakarn
welcome to shbcf.ru