I am noob in coding in JS and SharePoint, I've to check two conditions in NewForm.aspx.
If field, for e.g. "Name" has value "Test", and field "Second Name" has value "Test", then I want field named "Result" to be visible. If values from this two mentioned fields are different, then the field "Result" needs to be hidden.