define constant instead of duplicating 3 times
I’m fairly new to Node.js and I am having some issues. I received error in sonarqube as define a constant instead of duplicating 3 times for "Invalid Password". how can i resolved this issue. export const MessageCodeMapping = { REQUEST_COMPLETED_SUCCESSFULLY: { code: "1", description: "REQUEST_COMPLETED_SUCCESSFULLY", detailedDescription: "REQUEST_COMPLETED_SUCCESSFULLY", }, INVALID_CREATE_PASSWORD: { code: "4", description: "Invalid Password",… Read More define constant instead of duplicating 3 times