Challenge (6)
Make a program in HTML which can calculate cube root of a give number.
","upvoteCount":21},"suggestedAnswer":[{"@type":"Answer","text":"var a =parseInt(prompt(\"Enter\")); \nvar n = Math.pow(a, 1/3);\n\nalert (n)","upvoteCount":9},{"@type":"Answer","text":"@Terminator : not 1/4 ,it should be 1/3","upvoteCount":9},{"@type":"Answer","text":"https://code.sololearn.com/WGL8kl3B6vf2/?ref=app\n\nThis Is My Code But Mark Nikhil's Answer as Best","upvoteCount":9},{"@type":"Answer","text":"Mark Nikhil's Answer as Best 😊","upvoteCount":9},{"@type":"Answer","text":"https://code.sololearn.com/Wz2lOk64ya5W/?ref=app","upvoteCount":9},{"@type":"Answer","text":"@Ekansh :- It was solved with the very first answer by ValentinHacker...There is a problem with your code playground i guess","upvoteCount":9},{"@type":"Answer","text":"Congratulations for badge","upvoteCount":9},{"@type":"Answer","text":"document.write(Math.pow(prompt(\"Number please\"),1/3));","upvoteCount":8},{"@type":"Answer","text":"Ekansh :- What is the cube root of 27?","upvoteCount":8},{"@type":"Answer","text":"@Ekansh :- Write 27 in Valentin's and my code you will get 3","upvoteCount":8},{"@type":"Answer","text":"Let me try input tag","upvoteCount":8},{"@type":"Answer","text":"Its not public\nNow see","upvoteCount":8},{"@type":"Answer","text":"@ValentinHacker's code is also fully right..I think u should mark it best ..But Valentin after running your code nobody can go back from Code Playground ...Its like a death zone","upvoteCount":7},{"@type":"Answer","text":"Ekansh you got the answer to this?","upvoteCount":7},{"@type":"Answer","text":"Yes it is @Ekansh ...Copy it in JavaScript and then see","upvoteCount":6},{"@type":"Answer","text":"@nik 3","upvoteCount":5},{"@type":"Answer","text":"@Terminator it's not asking for no. please try it yourself","upvoteCount":5},{"@type":"Answer","text":"I want cube root not cube","upvoteCount":4},{"@type":"Answer","text":"@Nikhil code is not working","upvoteCount":4}]} }
Make a program in HTML which can calculate cube root of a give number.