Posts by Victor Nassif • 11 points
2 posts
-
0
votes2
answers133
viewsA: .Net Core 3.1 - How to use Enum to replace code string
I don’t know if I understand very well the purpose of your question, but if you want to compare the string with the Enum, you can use it this way: string teste = "NOT_SET";…
-
0
votes3
answers732
viewsA: Compute sum and subtraction in Javascript
just complementing the above comment... Note that you just declared the function, but have not yet used it. function somaSubtracao(num1, num2, operacao) { if (operacao === "+") return num1 + num2;…
javascriptanswered Victor Nassif 11