
- Javascript Basics Tutorial
- Javascript - Home
- Javascript - Overview
- Javascript - Syntax
- Javascript - Enabling
- Javascript - Placement
- Javascript - Variables
- Javascript - Operators
- Javascript - If...Else
- Javascript - Switch Case
- Javascript - While Loop
- Javascript - For Loop
- Javascript - For...in
- Javascript - Loop Control
- Javascript - Functions
- Javascript - Events
- Javascript - Cookies
- Javascript - Page Redirect
- Javascript - Dialog Boxes
- Javascript - Void Keyword
- Javascript - Page Printing
- JavaScript Objects
- Javascript - Objects
- Javascript - Number
- Javascript - Boolean
- Javascript - Strings
- Javascript - Arrays
- Javascript - Date
- Javascript - Math
- Javascript - RegExp
- Javascript - HTML DOM
- JavaScript Advanced
- Javascript - Error Handling
- Javascript - Validations
- Javascript - Animation
- Javascript - Multimedia
- Javascript - Debugging
- Javascript - Image Map
- Javascript - Browsers
- JavaScript Useful Resources
- Javascript - Questions And Answers
- Javascript - Quick Guide
- Javascript - Functions
- Javascript - Resources
Convert integer array to string array in JavaScript?
To convert integer array to string array, use the map(String) in JavaScript. Let’s say the following is our integer array −
var integerValues = [101,50,70,90,110,90,94,68];
Convert integer array to string array −
integerValues.map(String);
Example
Following is the code −
var integerValues = [101,50,70,90,110,90,94,68]; console.log("The integer array value="); console.log(integerValues); integerValues.map(String); console.log("The string array value="); console.log(integerValues)
To run the above program, you need to use the following command −
node fileName.js.
Here, my file name is demo212.js.
Output
The output is as follows in console −
PS C:\Users\Amit\JavaScript-code> node demo212.js The integer array value= [ 101, 50, 70, 90, 110, 90, 94, 68 ] The string array value= [ 101, 50, 70, 90, 110, 90, 94, 68 ]
- Related Articles
- C# Program to convert integer array to string array
- Convert a String to Integer Array in C/C++
- How to convert Integer array list to integer array in Java?
- Convert nested array to string - JavaScript
- Convert an array of binary numbers to corresponding integer in JavaScript
- How to convert Integer array list to float array in Java?
- How to convert array of decimal strings to array of integer strings without decimal in JavaScript
- JavaScript - convert array with null value to string
- How to convert an array into JavaScript string?
- How to convert an object array to an integer array in Java?
- Convert string with separator to array of objects in JavaScript
- Program to convert set of Integer to Array of Integer in Java
- Convert array of object to array of array in JavaScript
- How to convert string type value to array type in JavaScript?
- how to convert Object array to String array in java

Advertisements