Discuss the below:
Q: Create a JavaScript function to validate a text field on a form for holding a positive integer value, without using any inbuilt functions like IsNaN and so forth. If the text field contains a valid number then the JavaScript function will return "true", otherwise it will return "false" along with displaying a popup error message.