How to print Multidimensional array using JavaScript ?

What is Multidimensional Array ?

A multidimensional array is a data structure that can hold values organized in multiple dimensions or levels. In its simplest form, a one-dimensional array is like a list of values, while a two-dimensional array can be thought of as a grid or a table with rows and columns. Similarly, a multidimensional array extends this concept to more than two dimensions.


var apiURL = "{{ url('api/v1/j/rating/index') }}/" + id;
                url: apiURL,
                type: "GET",
                dataType: "json",
                headers: {
                    "Authorization": "Bearer " + localStorage.getItem('a_u_a_b_t')
                success: function(data) {
                    for (var i = 0; i <; i++) {
                        var currentObject =[i];
                        console.log("Admin ID:", currentObject.admin_id);
                        console.log("Admin Email:", currentObject.admin_email);
                        console.log("Months:", currentObject.month);
                        console.log("Name:", currentObject.rating_user_name);
                        console.log("Manager Name:", currentObject.rating_manager_name);
                        console.log("Year:", currentObject.year);
                        console.log("Rating:", currentObject.rating);
                    // renderCards(;
                error: function(error) {
                    console.log("Error fetching data:", error);


Thanks for reading 🙂

Hi I am Amit Kumar Thakur Experienced as s Software Developer with a demonstrated history of working in the information technology and services industry. Skilled in HTML, CSS, Bootstrap4, PHP, Laravel-9 , REST API,FB API,Google API, Youtube Api, Bitbucket,Github,Linux and jQuery. Strong engineering professional focused in Computer/Information Technology Administration and Management. Currently my profile is to Software Developer, analyze the requirement, creating frame for web application, coding and maintenance.

Related Posts

Difference between md5 password and Hash Passowrd Algorithm ?

The main differences between MD5 and modern password hashing algorithms like Bcrypt (which is often used through Hash::make() in Laravel) lie in their security properties: Example: –…

How to remove from response data.

In this tutorial i’m going to learn how to remove from whatever coming in response data. One way to remove from response data is by…

How to Generate Sitemap in PHP ? Dynamic sitemap Generator in PHP

In this tutorial im going to learn how to generate Sitemap. In this tutorial im going to share how to generate dynamic sitemap using php. first create…

mysqli::real_connect(): (HY000/1130): Host ‘localhost’ is not allowed to connect to this MariaDB server

I’m using PhpMyAdmin on XAMPP server. However, after installing WordPress on localhost, it start showing following error. Solution:- Next restart your xampp then your problem has been…

Error: error:0308010C:digital envelope routines::unsupported

In this tutorial I’m going to share how to solve Error: error:0308010C:digital envelope routines::unsupported. Just copy below code and run your terminal. After run above all code…

API calls from the server require an appsecret_proof argument

In this tutorial im going to solve this issue API calls from the server require an appsecret_proof argument. 1st step go to developer facebook advance setting and…

0 0 votes
Article Rating
Notify of
Inline Feedbacks
View all comments
Would love your thoughts, please comment.x