Console in vue source code [console.info? 'info':' log'] ('.'); what does it mean?

such as the title: does any classmate know what it means? Please advise Orz.
understand, thank the gods for their advice, at the same time, also found a good article: about console

there is also an object property access method: object property access

combined these two kinds of knowledge, and suddenly became coquettish, and 666 learned

.
Mar.15,2021

use console.info as soon as you can, otherwise use console.log


you can think of it as

(console.info||console.log)('...')

use console.log

to determine whether console.info, is supported or not.
Menu