TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Rupesh Kahane
102
19.1k
4.2m
typescript increases value for any datatype using pipe (|)
Dec 20 2019 6:15 AM
I have declare a variable of type any. While assigning the values as per below & I am printing it on console, so its updating the value from 50 to 51. I am using pipe (|) symbol Please help me & guide me if anything I am doing wrong. let myVariable: any; myVariable = "hello"; console.log("1 condition: " + myVariable); myVariable = 20; console.log("2 condition: " + myVariable); myVariable = 50 | true | "false"; console.log("3 condition: " + myVariable); Thanks
Reply
Answers (
2
)
How to allow routing to localhost:4200/overview? Partid=10
I need to access component when click link but not change UR