title: How can I push 3 or 4 variables into the array list in QML at a time
body: <p>I am new to qml and javascript technologies. I need sample example on push and pop operations on the array. For example, how can I push 3 variables into the array list in QML at a time. I want the output to be like below
  [{&quot;A001&quot;, 1, &quot;Item1&quot;}, {&quot;A002&quot;, 2, &quot;Item2&quot;}].
  I have started with sample code but could not able to complete the logic in Component.onCompleted.</p>
  <pre><code>Window {
  visible: true
  width: 640
  height: 480
  title: qsTr(&quot;Hello World&quot;)
  
  property var object: ({})
  property var list: []
  
  property string str1: &quot;A001&quot;
  property int value1: 1
  property string item1: &quot;Item1&quot;
  
  property string str2: &quot;A002&quot;
  property int value2: 2
  property string item2: &quot;Item2&quot;
  
  Component.onCompleted: {
      //1. Frame the object {str1, value1, item1}
      //2. Push to the array using push operation
      //3. The output of the array to be [{&quot;A001&quot;, 1, &quot;Item1&quot;}]
  
      //4. Frame the object {str2, value2, item2}
      //5. Push to the array using push operation
      //6. The output of the array to be [{&quot;A001&quot;, 1, &quot;Item1&quot;},{&quot;A002&quot;, 2, &quot;Item2&quot;}]
      
      //7. Do pop operation on the array
      //8. The output of the array to be [{&quot;A001&quot;, 1, &quot;Item1&quot;}]
  
      //9. Do pop operation on the array
      //10. The output of the array to be []
  }
  </code></pre>
  <p>}</p>