MCQ Answer

How can you convert a string to an integer in JavaScript

How can you convert a string to an integer in JavaScript

आप जावास्क्रिप्ट में एक स्ट्रिंग को पूर्णांक में कैसे परिवर्तित कर सकते हैं
Topic : JS Introduction

A. int("123") पूर्णांक('123')

B. parseInt("123") पार्सइंट('123')

C. toInt("123") toInt('123')

D. (int) “123”




Correct Answer is :

B. parseInt("123")



Online Exam Quiz for One day Exam Online Typing Test CCC Online Test 2026 Best Computer Training Institute in Prayagraj (Allahabad) Best Java Training Institute in Prayagraj (Allahabad) Best Python Training Institute in Prayagraj (Allahabad) O Level Online Test in Hindi Best Website and Software Company in Allahabad