why you used Java Script? Can it use for both client side
and server side validation purpose?

Answer Posted / dev

Javascript (ECMA script) when executed in the browser context makes it client side, if you are using it for creating API's etc with nodeJS you get to use it on the server side

please refer to https://nodejs.org/ on how you would use it on the server side.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Create an array in javascript with a list of 4 colors, assign that array to the variable, ‘colors’.

435


What is bom?

498


What is foreach loop in javascript?

512


What are the scopes of a variable in javascript?

512


What is event in javascript?

463






How can you declare a class in javascript?

540


What is the difference between Local Storage and Session Storage?

532


What is console.time() and console.timeend()? What is its syntax, and why is it used?

510


Explain hoisting in javascript?

639


What are the types used in javascript?

524


What is missing in my code? function numberTally(numList) { var evenTotal = 0; var oddTotal = 0; for (var i = 0; i <= numList.length; i++) { if i % 2 { // i is odd oddTotal += numList[i]; // or oddTotal = oddTotal + numList[i]; } else { // i is even evenTotal + numList[i]; } } alert(oddTotal); return evenTotal; }

2891


What is difference between api and library?

470


What does polyfill mean?

491


How do you write a comment in javascript?

447


What does the "Access is Denied" IE error mean?

667