Check out example codes for "insertSheet() at the beginning of active sheets google script". It will help you in understanding the concepts better.

Code Example 1

var ss = SpreadsheetApp.getActiveSpreadsheet();
ss.insertSheet('My New Sheet', 0);; // .insert(SheetsheetName, atIndex);

Learn ReactJs, React Native from akashmittal.com