39 Replies
what is the type of
name
and what is the type of 5
?name its string
3 is int
right (I assume you mean 5 not 3) - so it can't compare them because they're different types
(btw you probably want to use
==
instead of is
)hint: hover your mouse where there are squiggly lines
and how to transform int to string
To be clear, you want to check whether
name
is the string 5
?no i want write cod, if I write 5 in cosole ,console write "siema"
its dont work
but]
but
i don write "
![No description](https://cdn.answeroverflow.com/1181632934239801475/image.png)
now its working
It might look like it's working, but try entering something other than "Aleks"
its working
![No description](https://cdn.answeroverflow.com/1181633702627917885/image.png)
no don't change your code, just enter something different in the console
but "23@#" its string
oh ok