K
K
Konstantin2020-03-24 22:35:27
JavaScript
Konstantin, 2020-03-24 22:35:27

The variable is used before it is declared - why?

import { UIBlock } from './person';
    
    let a: UIBlock;
    
    a.items = [1,2,30];
    a.name = "d";
    
    console.log(a);


Why am I getting a message from the compiler, Variable used before declaration, if first I declate variable

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