Why we use empty string
Community Alums
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-31-2022 01:03 AM
Hi All,
Greetings!
Why we add empty string, I have come across multiple times but never understood the meaning. Please help me to understand below highlighted part. Why we used +'' here.
Thanks,
Tejas
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-31-2022 03:10 AM
Hi,
Can you share the complete scripts for better understanding.
Thanks,
Sagar Pagar
The world works with ServiceNow
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-31-2022 03:20 AM
Hello Tejas,
I have seen people most of the time using this syntax to convert the type to string.
It works similar to "variable.toString()."
I hope this information helps you. Thank you.