What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-09-14 19:06:03
javascript object destructuring rename
// Renaming // ---------------------------------------------- const { bar: foo } = { bar: 123 }; bar // Uncaught ReferenceError: bar is not defined foo // 123 // Renaming with default value // ---------------------------------------------- const { bar: ... Add solution -
Other 2021-09-13 08:22:03
checking if a folder name exist in google script
function getOrCreateSubFolder(childFolderName, parentFolderName) { var parentFolder, parentFolders; var childFolder, childFolders; // Gets FolderIterator for parentFolder parentFolders = DriveApp.getFoldersByName(parentFolderName); /* Checks if ... Add solution -
Javascript 2021-09-10 10:44:02
js object destructuring
//simple example with object------------------------------ let obj = {name: 'Max', age: 22, address: 'Delhi'}; const {name, age} = obj; console.log(name); //expected output: "Max" console.log(age); //expected output: 22 console.log(address); ... Add solution -
Javascript 2021-09-08 13:29:03
10.4.2. Functions // Default Value
/*This example modifies the hello function to use a default value for name. If name is not defined when hello is called, it will use the default value.*/ function hello(name = "World") { return `Hello, ${name}!`; } console.log(hello()); c... Add solution