Object.keys, values, entries by msisaifu · Pull Request #169 · javascript-tutorial/bn.javascript.info

Skip to content

Navigation Menu

Sign in

Appearance settings

Conversation

jaamaalxyz

প্রথম পার্থক্যটি আমরা দেখেছি অন্যান্য ডাটা স্ট্রাকচারের মত `obj.keys()` এর বদলে `Object.keys(obj)` কল করছি।

Why so? The main reason is flexibility. Remember, objects are a base of all complex structures in JavaScript. So we may have an object of our own like `data` that implements its own `data.values()` method. And we still can call `Object.values(data)` on it.
এমন কেন? প্রধান কারণ হল সহজযোগ্য করা। কেননা জাভাস্ক্রিপ্টের যে কোন ডাটা স্ট্রাকচার অবজেক্টের উপর ভিত্তি করে তৈরি হয়। তাই আমরা আমাদের নিজস্ব ডাটা স্ট্রাকচারের জন্য `data.values()` মেথড ইমপ্লিমেন্ট করতে পারি। এবং আমরা চাইলে আমাদের বেস অবজেক্টকেও কল করতে পারব`Object.values(data)`

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

সহজযোগ্য এর পরিবর্তে সহজবোধ্য বা নমনীয় শব্দগুলো ব্যবহার করুন।

jaamaalxyz

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please revised the content and update the PR

@javascript-translate-bot

Please make the requested changes. After it, add a comment "/done".
Then I'll ask for a new review 👻

Labels