{"id":256457,"date":"2024-05-16T15:11:00","date_gmt":"2024-05-16T15:11:00","guid":{"rendered":"https:\/\/namso-gen.co\/blog\/?p=256457"},"modified":"2024-05-16T15:11:00","modified_gmt":"2024-05-16T15:11:00","slug":"how-to-call-object-value-without-object-keys-in-javascript","status":"publish","type":"post","link":"https:\/\/namso-gen.co\/blog\/how-to-call-object-value-without-object-keys-in-javascript\/","title":{"rendered":"How to call object value without object keys in JavaScript?"},"content":{"rendered":"<p>When working with JavaScript objects, you might come across situations where you need to access the value of an object without knowing its key. Normally, you would access an object value using the object&#8217;s key, but what if you don&#8217;t know the key or want a more dynamic approach? In this article, we will explore some techniques to call object values without relying on object keys in JavaScript.<\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_62 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title \" >Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/namso-gen.co\/blog\/how-to-call-object-value-without-object-keys-in-javascript\/#Accessing_Object_Values_Dynamically\" title=\"Accessing Object Values Dynamically\">Accessing Object Values Dynamically<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/namso-gen.co\/blog\/how-to-call-object-value-without-object-keys-in-javascript\/#Using_for%E2%80%A6in_Loop\" title=\"Using for&#8230;in Loop\">Using for&#8230;in Loop<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/namso-gen.co\/blog\/how-to-call-object-value-without-object-keys-in-javascript\/#How_to_call_object_value_without_object_keys_in_JavaScript\" title=\"How to call object value without object keys in JavaScript?\">How to call object value without object keys in JavaScript?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/namso-gen.co\/blog\/how-to-call-object-value-without-object-keys-in-javascript\/#Related_FAQs\" title=\"Related FAQs\">Related FAQs<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/namso-gen.co\/blog\/how-to-call-object-value-without-object-keys-in-javascript\/#1_Can_I_access_object_values_without_knowing_the_keys\" title=\"1) Can I access object values without knowing the keys?\">1) Can I access object values without knowing the keys?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/namso-gen.co\/blog\/how-to-call-object-value-without-object-keys-in-javascript\/#2_What_is_the_difference_between_Objectvalues_and_the_for%E2%80%A6in_loop\" title=\"2) What is the difference between `Object.values()` and the `for&#8230;in` loop?\">2) What is the difference between `Object.values()` and the `for&#8230;in` loop?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/namso-gen.co\/blog\/how-to-call-object-value-without-object-keys-in-javascript\/#3_How_can_I_access_a_specific_object_value_without_knowing_its_key\" title=\"3) How can I access a specific object value without knowing its key?\">3) How can I access a specific object value without knowing its key?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/namso-gen.co\/blog\/how-to-call-object-value-without-object-keys-in-javascript\/#4_What_if_the_object_has_nested_properties\" title=\"4) What if the object has nested properties?\">4) What if the object has nested properties?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/namso-gen.co\/blog\/how-to-call-object-value-without-object-keys-in-javascript\/#5_Can_I_modify_object_values_without_knowing_the_keys\" title=\"5) Can I modify object values without knowing the keys?\">5) Can I modify object values without knowing the keys?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/namso-gen.co\/blog\/how-to-call-object-value-without-object-keys-in-javascript\/#6_How_can_I_access_object_values_dynamically_based_on_user_input\" title=\"6) How can I access object values dynamically based on user input?\">6) How can I access object values dynamically based on user input?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/namso-gen.co\/blog\/how-to-call-object-value-without-object-keys-in-javascript\/#7_Is_using_Objectvalues_compatible_with_all_JavaScript_versions\" title=\"7) Is using `Object.values()` compatible with all JavaScript versions?\">7) Is using `Object.values()` compatible with all JavaScript versions?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/namso-gen.co\/blog\/how-to-call-object-value-without-object-keys-in-javascript\/#8_What_happens_if_I_pass_an_array_to_Objectvalues\" title=\"8) What happens if I pass an array to `Object.values()`?\">8) What happens if I pass an array to `Object.values()`?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-13\" href=\"https:\/\/namso-gen.co\/blog\/how-to-call-object-value-without-object-keys-in-javascript\/#9_How_does_Objectvalues_handle_properties_inherited_from_the_prototype_chain\" title=\"9) How does `Object.values()` handle properties inherited from the prototype chain?\">9) How does `Object.values()` handle properties inherited from the prototype chain?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-14\" href=\"https:\/\/namso-gen.co\/blog\/how-to-call-object-value-without-object-keys-in-javascript\/#10_Can_I_use_Objectvalues_with_non-enumerable_properties\" title=\"10) Can I use `Object.values()` with non-enumerable properties?\">10) Can I use `Object.values()` with non-enumerable properties?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-15\" href=\"https:\/\/namso-gen.co\/blog\/how-to-call-object-value-without-object-keys-in-javascript\/#11_Are_the_values_returned_by_Objectvalues_in_the_same_order_as_the_object_properties\" title=\"11) Are the values returned by `Object.values()` in the same order as the object properties?\">11) Are the values returned by `Object.values()` in the same order as the object properties?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-16\" href=\"https:\/\/namso-gen.co\/blog\/how-to-call-object-value-without-object-keys-in-javascript\/#12_Can_I_access_object_values_without_using_any_built-in_methods\" title=\"12) Can I access object values without using any built-in methods?\">12) Can I access object values without using any built-in methods?<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"Accessing_Object_Values_Dynamically\"><\/span>Accessing Object Values Dynamically<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>One way to access object values without knowing the keys is by using the `Object.values()` method. This method returns an array of a given object&#8217;s own enumerable property values, in the same order as provided by a `for&#8230;in` loop. Let&#8217;s see an example:<\/p>\n<p>&#8220;`javascript<br \/>\nconst person = {<br \/>\n  name: &#8216;John Doe&#8217;,<br \/>\n  age: 30,<br \/>\n  occupation: &#8216;Software Developer&#8217;<br \/>\n};<\/p>\n<p>const values = Object.values(person);<br \/>\nconsole.log(values); \/\/ Outputs: [&#8216;John Doe&#8217;, 30, &#8216;Software Developer&#8217;]<br \/>\n&#8220;`<\/p>\n<p>In the example above, we access the values of the `person` object using `Object.values()`, which returns an array containing all the object&#8217;s property values. This approach works well if you don&#8217;t know the keys and want to retrieve all the values in the object.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Using_for%E2%80%A6in_Loop\"><\/span>Using for&#8230;in Loop<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Another way to access object values without knowing the keys is by using a `for&#8230;in` loop. The `for&#8230;in` loop iterates over all enumerable properties of an object, allowing us to access both keys and values. Here&#8217;s an example:<\/p>\n<p>&#8220;`javascript<br \/>\nconst person = {<br \/>\n  name: &#8216;John Doe&#8217;,<br \/>\n  age: 30,<br \/>\n  occupation: &#8216;Software Developer&#8217;<br \/>\n};<\/p>\n<p>for (const key in person) {<br \/>\n  const value = person[key];<br \/>\n  console.log(value); \/\/ Outputs: &#8216;John Doe&#8217;, 30, &#8216;Software Developer&#8217;<br \/>\n}<br \/>\n&#8220;`<\/p>\n<p>In this example, we use a `for&#8230;in` loop to iterate through each key in the `person` object. Then, we retrieve the corresponding value using `person[key]` and log it to the console. This approach is useful when you want to perform some operations with each value individually.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"How_to_call_object_value_without_object_keys_in_JavaScript\"><\/span><b>How to call object value without object keys in JavaScript?<\/b><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>The simplest approach to call an object value without object keys in JavaScript is to use the `Object.values()` method. It returns an array of an object&#8217;s property values, allowing you to access them directly.<\/p>\n<p>For example:<br \/>\n&#8220;`javascript<br \/>\nconst person = {<br \/>\n  name: &#8216;John Doe&#8217;,<br \/>\n  age: 30,<br \/>\n  occupation: &#8216;Software Developer&#8217;<br \/>\n};<\/p>\n<p>const values = Object.values(person);  \/\/ Calling object value without object keys<br \/>\nconsole.log(values); \/\/ Outputs: [&#8216;John Doe&#8217;, 30, &#8216;Software Developer&#8217;]<br \/>\n&#8220;`<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Related_FAQs\"><\/span>Related FAQs<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<h3><span class=\"ez-toc-section\" id=\"1_Can_I_access_object_values_without_knowing_the_keys\"><\/span>1) Can I access object values without knowing the keys?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\nYes, you can use the `Object.values()` method or a `for&#8230;in` loop to access object values without knowing the keys.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"2_What_is_the_difference_between_Objectvalues_and_the_for%E2%80%A6in_loop\"><\/span>2) What is the difference between `Object.values()` and the `for&#8230;in` loop?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\n`Object.values()` returns an array of object values, while `for&#8230;in` loop allows you to access both keys and values individually.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"3_How_can_I_access_a_specific_object_value_without_knowing_its_key\"><\/span>3) How can I access a specific object value without knowing its key?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\nBy using `Object.values()`, you can retrieve all values at once and then access the desired value using its index in the returned array.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"4_What_if_the_object_has_nested_properties\"><\/span>4) What if the object has nested properties?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\n`Object.values()` and `for&#8230;in` loop work with nested objects as well, allowing you to access values at any level of the object hierarchy.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"5_Can_I_modify_object_values_without_knowing_the_keys\"><\/span>5) Can I modify object values without knowing the keys?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\nYes, when using a `for&#8230;in` loop, you can directly modify object values by reassigning them using the corresponding key.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"6_How_can_I_access_object_values_dynamically_based_on_user_input\"><\/span>6) How can I access object values dynamically based on user input?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\nYou can store user input in a variable and then use it as the key to access the corresponding object value.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"7_Is_using_Objectvalues_compatible_with_all_JavaScript_versions\"><\/span>7) Is using `Object.values()` compatible with all JavaScript versions?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\nNo, `Object.values()` was introduced in ECMAScript 2017, so it may not be available in older JavaScript environments.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"8_What_happens_if_I_pass_an_array_to_Objectvalues\"><\/span>8) What happens if I pass an array to `Object.values()`?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\nWhen you pass an array to `Object.values()`, it will return the values of the array elements, not the indexes.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"9_How_does_Objectvalues_handle_properties_inherited_from_the_prototype_chain\"><\/span>9) How does `Object.values()` handle properties inherited from the prototype chain?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\n`Object.values()` only returns the values of an object&#8217;s own enumerable properties, excluding any inherited properties.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"10_Can_I_use_Objectvalues_with_non-enumerable_properties\"><\/span>10) Can I use `Object.values()` with non-enumerable properties?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\nNo, `Object.values()` only returns values for enumerable properties of an object.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"11_Are_the_values_returned_by_Objectvalues_in_the_same_order_as_the_object_properties\"><\/span>11) Are the values returned by `Object.values()` in the same order as the object properties?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\nYes, the values are returned in the same order as provided by a `for&#8230;in` loop, which generally follows the order of the object&#8217;s creation.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"12_Can_I_access_object_values_without_using_any_built-in_methods\"><\/span>12) Can I access object values without using any built-in methods?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\nWhile it is possible to access object values without using built-in methods, it is not recommended as it requires more manual handling and increases the chances of errors.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When working with JavaScript objects, you might come across situations where you need to access the value of an object without knowing its key. Normally, you would access an object value using the object&#8217;s key, but what if you don&#8217;t know the key or want a more dynamic approach? In this article, we will explore &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"How to call object value without object keys in JavaScript?\" class=\"read-more button\" href=\"https:\/\/namso-gen.co\/blog\/how-to-call-object-value-without-object-keys-in-javascript\/#more-256457\">Read more<span class=\"screen-reader-text\">How to call object value without object keys in JavaScript?<\/span><\/a><\/p>\n","protected":false},"author":65,"featured_media":107420,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[86279],"tags":[],"class_list":["post-256457","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-learn","no-featured-image-padding"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to call object value without object keys in JavaScript?<\/title>\n<meta name=\"description\" content=\"When working with JavaScript objects, you might come across situations where you need to access the value of an object without knowing its key. Normally,\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/namso-gen.co\/blog\/how-to-call-object-value-without-object-keys-in-javascript\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to call object value without object keys in JavaScript?\" \/>\n<meta property=\"og:description\" content=\"When working with JavaScript objects, you might come across situations where you need to access the value of an object without knowing its key. Normally,\" \/>\n<meta property=\"og:url\" content=\"https:\/\/namso-gen.co\/blog\/how-to-call-object-value-without-object-keys-in-javascript\/\" \/>\n<meta property=\"og:site_name\" content=\"Namso Gen Blog - Free Credit Card Generator [100% Valid]\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/synchronyfinancial\" \/>\n<meta property=\"article:published_time\" content=\"2024-05-16T15:11:00+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/namso-gen.co\/blog\/wp-content\/uploads\/2024\/03\/faq.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"630\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Timothy Mathis\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@synchrony\" \/>\n<meta name=\"twitter:site\" content=\"@synchrony\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Timothy Mathis\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/namso-gen.co\/blog\/how-to-call-object-value-without-object-keys-in-javascript\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/namso-gen.co\/blog\/how-to-call-object-value-without-object-keys-in-javascript\/\"},\"author\":{\"name\":\"Timothy Mathis\",\"@id\":\"https:\/\/namso-gen.co\/blog\/#\/schema\/person\/ffa5be155490b2344e28f672fcc1e318\"},\"headline\":\"How to call object value without object keys in JavaScript?\",\"datePublished\":\"2024-05-16T15:11:00+00:00\",\"dateModified\":\"2024-05-16T15:11:00+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/namso-gen.co\/blog\/how-to-call-object-value-without-object-keys-in-javascript\/\"},\"wordCount\":764,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/namso-gen.co\/blog\/#organization\"},\"articleSection\":[\"Learn\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/namso-gen.co\/blog\/how-to-call-object-value-without-object-keys-in-javascript\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/namso-gen.co\/blog\/how-to-call-object-value-without-object-keys-in-javascript\/\",\"url\":\"https:\/\/namso-gen.co\/blog\/how-to-call-object-value-without-object-keys-in-javascript\/\",\"name\":\"How to call object value without object keys in JavaScript?\",\"isPartOf\":{\"@id\":\"https:\/\/namso-gen.co\/blog\/#website\"},\"datePublished\":\"2024-05-16T15:11:00+00:00\",\"dateModified\":\"2024-05-16T15:11:00+00:00\",\"description\":\"When working with JavaScript objects, you might come across situations where you need to access the value of an object without knowing its key. Normally,\",\"breadcrumb\":{\"@id\":\"https:\/\/namso-gen.co\/blog\/how-to-call-object-value-without-object-keys-in-javascript\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/namso-gen.co\/blog\/how-to-call-object-value-without-object-keys-in-javascript\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/namso-gen.co\/blog\/how-to-call-object-value-without-object-keys-in-javascript\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/namso-gen.co\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to call object value without object keys in JavaScript?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/namso-gen.co\/blog\/#website\",\"url\":\"https:\/\/namso-gen.co\/blog\/\",\"name\":\"Namso Gen Blog - Free Credit Card Generator [100% Valid]\",\"description\":\"In Namso gen blog you can get many tips regarding to Credit cards, VCC, Credit card security etc. You can generate credit cards by using Namso-gen.co\",\"publisher\":{\"@id\":\"https:\/\/namso-gen.co\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/namso-gen.co\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/namso-gen.co\/blog\/#organization\",\"name\":\"Namso Gen Blog - Free Credit Card Generator [100% Valid]\",\"url\":\"https:\/\/namso-gen.co\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/namso-gen.co\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/namso-gen.co\/blog\/wp-content\/uploads\/2020\/07\/namso-gen-logo.png\",\"contentUrl\":\"https:\/\/namso-gen.co\/blog\/wp-content\/uploads\/2020\/07\/namso-gen-logo.png\",\"width\":500,\"height\":164,\"caption\":\"Namso Gen Blog - Free Credit Card Generator [100% Valid]\"},\"image\":{\"@id\":\"https:\/\/namso-gen.co\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/synchronyfinancial\",\"https:\/\/twitter.com\/synchrony\",\"https:\/\/www.youtube.com\/synchronyfinancial\",\"https:\/\/www.instagram.com\/synchrony\",\"https:\/\/www.linkedin.com\/company\/synchrony-financial\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/namso-gen.co\/blog\/#\/schema\/person\/ffa5be155490b2344e28f672fcc1e318\",\"name\":\"Timothy Mathis\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/namso-gen.co\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g\",\"caption\":\"Timothy Mathis\"},\"description\":\"Guest author Timothy Mathis has meticulously crafted and revised this article to the best of their knowledge and understanding. Readers are strongly advised to exercise caution, verify information independently, and rely on their own judgment when considering the information provided. Read more articles on Namso Gen here.\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to call object value without object keys in JavaScript?","description":"When working with JavaScript objects, you might come across situations where you need to access the value of an object without knowing its key. Normally,","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/namso-gen.co\/blog\/how-to-call-object-value-without-object-keys-in-javascript\/","og_locale":"en_US","og_type":"article","og_title":"How to call object value without object keys in JavaScript?","og_description":"When working with JavaScript objects, you might come across situations where you need to access the value of an object without knowing its key. Normally,","og_url":"https:\/\/namso-gen.co\/blog\/how-to-call-object-value-without-object-keys-in-javascript\/","og_site_name":"Namso Gen Blog - Free Credit Card Generator [100% Valid]","article_publisher":"https:\/\/www.facebook.com\/synchronyfinancial","article_published_time":"2024-05-16T15:11:00+00:00","og_image":[{"width":1200,"height":630,"url":"https:\/\/namso-gen.co\/blog\/wp-content\/uploads\/2024\/03\/faq.png","type":"image\/png"}],"author":"Timothy Mathis","twitter_card":"summary_large_image","twitter_creator":"@synchrony","twitter_site":"@synchrony","twitter_misc":{"Written by":"Timothy Mathis","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/namso-gen.co\/blog\/how-to-call-object-value-without-object-keys-in-javascript\/#article","isPartOf":{"@id":"https:\/\/namso-gen.co\/blog\/how-to-call-object-value-without-object-keys-in-javascript\/"},"author":{"name":"Timothy Mathis","@id":"https:\/\/namso-gen.co\/blog\/#\/schema\/person\/ffa5be155490b2344e28f672fcc1e318"},"headline":"How to call object value without object keys in JavaScript?","datePublished":"2024-05-16T15:11:00+00:00","dateModified":"2024-05-16T15:11:00+00:00","mainEntityOfPage":{"@id":"https:\/\/namso-gen.co\/blog\/how-to-call-object-value-without-object-keys-in-javascript\/"},"wordCount":764,"commentCount":0,"publisher":{"@id":"https:\/\/namso-gen.co\/blog\/#organization"},"articleSection":["Learn"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/namso-gen.co\/blog\/how-to-call-object-value-without-object-keys-in-javascript\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/namso-gen.co\/blog\/how-to-call-object-value-without-object-keys-in-javascript\/","url":"https:\/\/namso-gen.co\/blog\/how-to-call-object-value-without-object-keys-in-javascript\/","name":"How to call object value without object keys in JavaScript?","isPartOf":{"@id":"https:\/\/namso-gen.co\/blog\/#website"},"datePublished":"2024-05-16T15:11:00+00:00","dateModified":"2024-05-16T15:11:00+00:00","description":"When working with JavaScript objects, you might come across situations where you need to access the value of an object without knowing its key. Normally,","breadcrumb":{"@id":"https:\/\/namso-gen.co\/blog\/how-to-call-object-value-without-object-keys-in-javascript\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/namso-gen.co\/blog\/how-to-call-object-value-without-object-keys-in-javascript\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/namso-gen.co\/blog\/how-to-call-object-value-without-object-keys-in-javascript\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/namso-gen.co\/blog\/"},{"@type":"ListItem","position":2,"name":"How to call object value without object keys in JavaScript?"}]},{"@type":"WebSite","@id":"https:\/\/namso-gen.co\/blog\/#website","url":"https:\/\/namso-gen.co\/blog\/","name":"Namso Gen Blog - Free Credit Card Generator [100% Valid]","description":"In Namso gen blog you can get many tips regarding to Credit cards, VCC, Credit card security etc. You can generate credit cards by using Namso-gen.co","publisher":{"@id":"https:\/\/namso-gen.co\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/namso-gen.co\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/namso-gen.co\/blog\/#organization","name":"Namso Gen Blog - Free Credit Card Generator [100% Valid]","url":"https:\/\/namso-gen.co\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/namso-gen.co\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/namso-gen.co\/blog\/wp-content\/uploads\/2020\/07\/namso-gen-logo.png","contentUrl":"https:\/\/namso-gen.co\/blog\/wp-content\/uploads\/2020\/07\/namso-gen-logo.png","width":500,"height":164,"caption":"Namso Gen Blog - Free Credit Card Generator [100% Valid]"},"image":{"@id":"https:\/\/namso-gen.co\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/synchronyfinancial","https:\/\/twitter.com\/synchrony","https:\/\/www.youtube.com\/synchronyfinancial","https:\/\/www.instagram.com\/synchrony","https:\/\/www.linkedin.com\/company\/synchrony-financial"]},{"@type":"Person","@id":"https:\/\/namso-gen.co\/blog\/#\/schema\/person\/ffa5be155490b2344e28f672fcc1e318","name":"Timothy Mathis","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/namso-gen.co\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g","caption":"Timothy Mathis"},"description":"Guest author Timothy Mathis has meticulously crafted and revised this article to the best of their knowledge and understanding. Readers are strongly advised to exercise caution, verify information independently, and rely on their own judgment when considering the information provided. Read more articles on Namso Gen here."}]}},"_links":{"self":[{"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/posts\/256457","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/users\/65"}],"replies":[{"embeddable":true,"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/comments?post=256457"}],"version-history":[{"count":0,"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/posts\/256457\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/media\/107420"}],"wp:attachment":[{"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/media?parent=256457"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/categories?post=256457"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/tags?post=256457"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}