What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-10-07 01:54:06
javascript destructing
const HIGH_TEMPERATURES = { yesterday: 75, today: 77, tomorrow: 80 }; //ES6 assignment syntax const {today, tomorrow} = HIGH_TEMPERATURES; //ES5 assignment syntax const today = HIGH_TEMPERATURES.today; const tomorrow = HIGH_TEMPERATURES.tomorrow; ... Add solution -
Other 2021-09-29 23:11:02
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 -
Other 2021-09-29 05:54:03
NameError: name 'App' is not defined
NameError: name 'App' is not defined Add solution -
Other 2021-09-26 11:20:02
javascript 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 -
Python 2021-09-20 01:59:03
The del statemen
my_var = 5 my_tuple = ('Sam', 25) my_dict = {'name': 'Sam', 'age': 25} del my_var del my_tuple del my_dict # Error: my_var is not defined print(my_var) # Error: my_tuple is not defined print(my_tuple) # Error: my_dict is not defined print(my_dict) Add solution -
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