What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-11-14 09:57:44
object destructuring example
//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-11-13 23:12:24
not defined javascript
/* Means something was not defined for example you wanted to print */ "X" /* but X is not defined to defined you have to make a variable for it */ X = "Something" /* Once you define it it'll print the value successfully */ Add solution -
Javascript 2021-11-11 16:19:21
mdn 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-11-11 01:22:11
python global import
>>> math Traceback (most recent call last): File "<stdin>", line 1, in <module> NameError: name 'math' is not defined >>> def f(): ... global math ... import math ... >>> f() >>> math <... Add solution -
Python 2021-11-09 21:14:18
adding roles discord py
# If ctx is not defined and you are handling a message, use this code ctx = await bot.get_context(message) # This is the code needed to give a user a role member = ctx.message.author # Member object that you want to add the role to role = discord.utils.g... Add solution -
Other 2021-11-07 04:47:07
destructuring Array in JavaScript
//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