@ManavMisra/

DelectableCostlyBoard

Nodejs

No description

fork
loading
Files
  • index.js
index.js
1
2
3
4
5
6
7
8
9
10
11
12
const todo = {
   text: 'learn JS!',
   completed: false
}

const todo2 = {
   ...todo, 
   completed = !todo.completed
};

console.log(todo);
console.log(todo2);
node v10.16.0