JS Level-01 Exercise-01

 alert("Please enetr your weight ");

var weight=prompt("Please enter your weight: ")

var kg= weight *.453592;


alert("Your weight in kg us: " +kg)

console.log("weight converted ")



In the above code prompt is just like input in python.


Comments

Popular posts from this blog

Top 5 Best Books For Python,Data Science & Machine Learning

How To Start A BLOG

Top 50 Most Innovative Companies in 2020

Why Should We learn C Programming?

Blogger Tutorial