vertical bar and null used for in TypeScript

0 votes

Hello, I'm new to TypeScript and JavaScript.

What does this mean in the following code?

how is it used in |?

what is the purpose of null = null?

let element: HTMLElement | null = null;
Jul 29, 2022 in TypeSript by Elton
• 400 points

edited Mar 4 8 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP