Y
Y
yura_born2022-02-08 14:30:04
Visual Studio Code
yura_born, 2022-02-08 14:30:04

Why doesn't VSC show properties and methods of an object?

const soldier  = {
  health: 400,
  armor: 100,
  sayHello: function(){
    console.log('Hello');
  }
};

const jonh = Object.create(soldier);


For example, I create a jonh object. and when using an object in VSC, I want to see what properties, for example, are in this object, I write: john. I put an end to it but in the context menu that pops up the properties are not displayed. Why is that? maybe there is a plug-in, I did not find anything on the net.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question