JavaScript Push complex json record into a json variable using javascript

DEMO here i corrected your json and checkout the demo

var studentData={
   "student1": [
       {
           "term1": [
               {
                   "LifeSkills": [
                       {
                           "obtained": "17",
                           "grade": "A",
                           "gp": "5"
                       }
                   ]
               },
               {
                   "Work": [
                       {
                           "obtained": "13",
                           "grade": "A",
                           "gp": "5"
                       }
                   ]
               }
           ],
           "term2": [
               {
                   "LifeSkills": [
                       {
                           "obtained": "17",
                           "grade": "A",
                           "gp": "5"
                       }
                   ]
               },
               {
                   "Work": [
                       {
                           "obtained": "13",
                           "grade": "A",
                           "gp": "5"
                       }
                   ]
               }
           ]
       }
   ]
}
var marks=[]; 
marks.push(studentData);
console.log(marks); 

it successfully pushed into marks array

Answer:1
    var marks=[];
var studentData={"student1":[{
        "term1":[
            {"LifeSkills":[{"obtained":"17","grade":"A","gp":"5"}]},
            {"Work":[{"obtained":"13","grade":"A","gp":"5"}]}
              ],
         "term2":[
            {"LifeSkills":[{"obtained":"17","grade":"A","gp":"5"}]},
            {"Work":[{"obtained":"13","grade":"A","gp":"5"}]}
              ]
}]};
marks.push(studentData);
console.log(marks);

Here you go.

Answer:2

Can I center the content of div with center-block?? The following example does not work: <div class="form-group"> <div class="center-block"> <input id="...

Can I center the content of div with center-block?? The following example does not work: <div class="form-group"> <div class="center-block"> <input id="...

  1. center content with flexbox
  2. center content with css
  3. center content with flex
  4. center content with padding
  5. center content with bootstrap
  6. center content with margin
  7. center content with css grid
  8. flexbox center content
  9. center content with html
  10. center content in div
  11. center content in div bootstrap
  12. center content in div css
  13. center content in div vertically
  14. center content in div bootstrap 4
  15. center content in column bootstrap
  16. center content in td
  17. center content in column bootstrap 4
  18. center content in table cell
  19. center content in div horizontally
  20. center content in row bootstrap 4

I have the following array: var data= [{ "Id": 1, "Name": "NameOne"} { "Id": 2, "Name": "NameTwo"} { "Id": 2, "Name": "NameTwo"}] { "Id": 3, "Name": "NameThree"}] ...

I have the following array: var data= [{ "Id": 1, "Name": "NameOne"} { "Id": 2, "Name": "NameTwo"} { "Id": 2, "Name": "NameTwo"}] { "Id": 3, "Name": "NameThree"}] ...

  1. linq group with join
  2. linq group with count
  3. linq group with sum
  4. linq group with where
  5. linq group with where clause
  6. linq with group by c#
  7. linq group to dictionary
  8. linq group to list
  9. linq group having
  10. linq group and order by
  11. linq group and select
  12. linq group and sort
  13. linq group having count
  14. linq group and count c#
  15. linq group and sum list
  16. linq group and select first
  17. linq group and max
  18. linq group and sum c#
  19. linq group to array
  20. linq group and aggregate

I just discovered a weird issue with Angular 1.2.1, demonstrated in this fiddle (tested in both IE, FF, and Chrome): if I create a very simple templated directive, it fails to work as <my-element /&...

I just discovered a weird issue with Angular 1.2.1, demonstrated in this fiddle (tested in both IE, FF, and Chrome): if I create a very simple templated directive, it fails to work as <my-element /&...

I have 2 long URLs that point to the same page, http://preview.tbwabox.co.nz/_v005/index.html#buying-a-car http://preview.tbwabox.co.nz/_v005/index.html#buying-a-house and I would like to check if ...

I have 2 long URLs that point to the same page, http://preview.tbwabox.co.nz/_v005/index.html#buying-a-car http://preview.tbwabox.co.nz/_v005/index.html#buying-a-house and I would like to check if ...