let marks = [85, 97, 89, 67, 82, 94, 86, 71, 57, 68]
let name = ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J"]
let roll = prompt("Enter The Roll No...")
let ind = Number.parseInt(roll)
function abc() {
return "\'s Roll No. Is "
}
function def() {
return " & He Has Scored "
}
console.log(name[ind-1] + abc() + ind + def() + marks[ind-1] + ".")
top of page
bottom of page