I am writing JavaScript code in which the user is required to do physics calculation and enter an answer. The code should check if the answer is right or not. For example, if the correct answer is "5 N", the code should label all of these as correct answers: "5.0 N", "5.00 Newton", "5.0000 Newtons", "5 newton", "5 newtons", etc. Is there any good way to do this? Thanks.