Is there a way to check if a value is a string value, for example to check if project.score===“string value”?
a score usually wouldn’t be a string, but you did exactly what you wanted.
if(str1 === "hello")
checks if str1
is the same as "hello"
.
if you want to check if something is a string, it looks like you can do if(typeof var1 === "string")
.
1 Like
thank you that was very helpful