
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How to return a string from a JavaScript function?
To return a string from a JavaScript function, use the return statement in JavaScript.
Example
You need to run the following code to learn how to return a string using return statement −
Click the following button to call the function
Advertisements