S
S
sergeyviktorovich2021-07-15 12:30:38
JavaScript
sergeyviktorovich, 2021-07-15 12:30:38

What is the name of '.?' in js?

that's about this question in the expression how to find information where and how it can be used?

this.posts.sort(post1,post2)=>{
post1['value']?.localecompare(post2['value']);}
);

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vasily Bannikov, 2021-07-15
@sergeyviktorovich

This is an optional chaining operator

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question