I just want to add two numbers but is result come as string . I use vscode.How can take input as integer ?

var num1 =prompt("enter a number");
var num2=prompt("enter a number");

var sum =num1+num2;

console.log(`the of ${num1} and ${num2} ${sum}` );