Email Validation

JavaScript Perfect Email Validation

Email Validation To get JavaScript Perfect Email Validation is a little tricky. So I am going to share this simple solutions with you. Hope this may help and save your time. JavaScript Code [code lang=”js”] function validateEmail() { // var email = document.forms["coderbd"]["email"].value; var...

JavaScript Problem-2

Questions: Write an HTML document to find X to power n where value of x and n taken from user? Ans. The solution of above question is as follows: var x=prompt(“Enter value of X: “,””); var n=prompt(“Enter value of n: “,””); var result=Math.pow(x,n); document.write(result); Happy...

JavaScript Problem-01

Question: We shall take some numbers like 1 to 10, From the mentioned numbers we shall print the odd numbers except 3 and 5 and at last also we shall make SUM of those odd number .