SOURCE

const BehaviorSubject = rxjs.BehaviorSubject
const subject = new BehaviorSubject('default value')
subject.subscribe({next:function(value){console.log(value)}})
subject.next('hello')
console 命令行工具 X clear

                    
>
console