思路

获取注册和当前对应时间戳相减,结果除以一天的毫秒数: 1000*60*60*24
结果向下取整用Math的floor方法

var person = {
                level: '2',
                name: '小丽',
                registTime: '2021-11-01',
            }
            var h2 = document.querySelector('h2');
            // 补全代码
			// 前面添加 + 转为数字
			// 当 Date 对象被转化为数字时,得到的是对应的时间戳
            const registerTime = +new Date(person.registTime)
            const nowTime = +new Date()
            const day = Math.floor((nowTime - registerTime) / (1000*60*60*24))

            h2.innerText = `尊贵的牛客网2级用户小丽您好,您已经注册牛客网${day}天啦`