Use of Datatypes and variable

Dear,’
LearnVern Team
My Assignment 3 in javaScript has been not Run in browser please help me .
Please check my cods links and reply.

<meta charset="UTF-8">

<meta http-equiv="X-UA-Compatible" content="IE=edge">

<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>Document</title>
<h1> ur data </h1>

<p id="data"></p>

<script>

    function myfun() {

        var fname = prompt(" Enter ur name");

        var lname = prompt(" Enter ur last name");

        var city = prompt(" Enter ur city");

        var pincode = prompt(" Enter ur pincode");

        var number = prompt(" Enter ur number");

        if (fname != "" )

        {

           

            document.getElementById("data").innerHTML = "hello " + fname + " ur details are - " + "<br>" + "firstname = " + fname + "<br>" + "lastname = " + lname + "<br>" + "city = " + city + "<br>" +"pincode = " + pincode + "<br>" + "number = " + number;

       

        }

        else

        {

       

            alert("hello enter ur data")

       

        }

        

    }

</script>
Document Thank you so much sir, But mujhe mata tags smajh nhi aye shi se so explain me. You have one mistak in body part you did not type **onload** tag in body tag and aapne function ko call nhi kraya isliye run nhi ho rha tha to phir mene chack kia.

so thank you for Supported me.

Name: Nitish Kumar

onload mne apne code m likha h pr shayd is web site ne nahi likha
aap dekha skte is website ne mera html or body nahi likha
ye meta tag apne aap visual studio code deta h kiyu ki jb hm website ko moblie m open kre to sahi se kaam kre

wse meta tag m kuchh website ke bare m key hote h unko likhte h
taki google search engine un key se us website ko pahchane or use user ko dekhaye