“Can Javascript add value to a string if value is not 0?”
how can I add a value to a string only when the value is not 0? e.g. value={"https://google.com?search=" + query + "&lang=" + language} I want to add &lang= only if lang is not 0. When language == 0, expected…