I found this pieces of code: Here, What is the ?.
JavaScript operator? And Will I be able to use ??
Nullish Coalescing Operator in JavaScript instead of ||
OR operator according to the mentioned code snippet below?
const location = {
lat: data?.coords?.latitude,
long: data?.coords?.longitude
}
const docId = auth.currentUser?.uid || '123'