Advertisement
Guest User

Untitled

a guest
Jun 15th, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. class Scissor{
  2.  
  3. constructor(me){
  4. this.me;
  5. this.situation;
  6. }
  7. }
  8.  
  9. let Biggy = new Scissor(Game.creeps['Biggy']);
  10.  
  11. TypeError: Cannot read property 'Biggy' of undefined
  12.  
  13. class Scissor{
  14.  
  15. constructor(me){
  16. this.me = me; // Здесь ошибка = me
  17. this.situation;
  18. }
  19.  
  20. let Biggy = new Scissor(Game.creeps['Biggy']);
  21.  
  22. SyntaxError: Unexpected strict mode reserved word
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement