daily pastebin goal
28%
SHARE
TWEET

Untitled

a guest Oct 23rd, 2018 79 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. let obj = {field1: 7};
  2. let field1= obj.field1;
  3. console.log(field1); // 7
  4. field1= 8;
  5. console.log(obj.field1) // 7, а мне нужно чтобы было 8
  6.    
  7. let obj={field1:7};
  8. let field2=8;
  9. console.log(obj.field1=field2);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top