Realated Questions
Predict the output of the following JavaScript code.
var a = "javascript"; var result = a.substring(2, 3); document.write(result);
What will be the output of the following code snippet?
console.log(parseInt("123Hello")); console.log(parseInt("Hello123"));
What output will come if we run the following part of the JavaScript code?
const string2Num = parseInt("123abc"); console.log(string2Num);