> for each loop in app script || for loop vs for each loop in hindi
एक्सेल और एडवांस एक्सेल से जुड़े सभी लेटेस्ट विडियो पाने के लिए मेरे यूट्यूब चैनल को अभी सबस्क्राइब करे लिंक नीचे है धन्यवाद |

for each loop in app script || for loop vs for each loop in hindi

 

for each loop in app script || for loop vs for each loop in hindi


दोस्तों आज के इस आर्टिकल में मैं आपको बताऊंगा कि आप  Google App-script में for each loop (for each loop in app script) का यूज कैसे कर सकते हैं |

Definition :

For each loop is array method which is used to execute a function for each element in array.

Source Code:

function forEachLoop() {

  var a = ['Mohan','Rakesh','Sanjay','Praveen'];
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheetname = ss.getSheets();
 for(var i =0;i<sheetname.length;i++){
 var tabname = sheetname[i].activate();
 tabname.getRange('A1').setValue('tech gyan amit');

 }
sheetname.forEach(function(sheet){
var getsheetName =sheet.activate();
getsheetName.getRange('B1').setValue('Amit');

});

}

एक टिप्पणी भेजें

7 टिप्पणियाँ

  1. Its nice article for the new bloggers, every new blogger should read this article. we have a site where a online marketers can earn money online satta matka result

    जवाब देंहटाएं
  2. This has been an extremely wonderful article. Many thanks for providing this information.
    rateio de concursos

    जवाब देंहटाएं
  3. I can’t raise the boldness to tell you how much I worship you, so I guess I’ll just keep it to myself.


    kolkata ff

    जवाब देंहटाएं
  4. Its nice article for the new bloggers, every new blogger should read this article... Buy Instagram pva accounts
    Instagram pva accounts

    जवाब देंहटाएं

Thanks For Message Me if any issue please feel free to contact