• Courses
  • Code Compiler
  • Discuss
  • Pricing
  • Teams
Menu
+ 2

Data type

how to change one type into another?(in js) Ex."1"→1

javascript
30th Apr 2017, 1:39 PM
tim wong
tim wong - avatar
2 Answers
+ 3
x = parseInt("42");
30th Apr 2017, 2:22 PM
Burey
Burey - avatar
+ 1
var num = Number("1");
30th Apr 2017, 1:49 PM
Jeth
Jeth - avatar

Often have questions like this?

Learn more efficiently, for free:

  • Introduction to Python

    7.1M learners

  • Introduction to Java

    4.7M learners

  • Introduction to C

    1.5M learners

  • Introduction to HTML

    7.5M learners

See all courses
Hot today
Sarang
2 Votes
Buggy app today
1 Votes
How many program that you've made even a smaal project are good?
0 Votes
What kind of questions do companies ask in Data Analyst interviews (including Python, SQL, Power BI, and Excel)?
1 Votes
??
1 Votes
Programming
0 Votes
Code coach isn't awarding xp
0 Votes
Temperature converter( celsius to fahrenheit)
0 Votes
Give some simple practice questions in C
0 Votes
Alguien me podrĂ­a explicar sobre para que sirve cada tipo de lenguaje de programaciĂłn?
0 Votes