0
How to set condition between data types in javasScript
7 Respostas
+ 2
🇧🇩EkmuthoSopno🇧🇩 yes, you can. Try this
var a = 20;
var b =20;
if (typeof a == typeof b ){
console.log("This is data type of a and b is ", typeof a)
}
+ 1
Be more specific. Do you want a boolean? Between an int and a string? Show us code.
+ 1
You can do this
if (typeof 9 == typeof 10) {
console.log("hello");
}
+ 1
Thanks bro
+ 1
🇧🇩EkmuthoSopno🇧🇩 welcome bro. Here, we all are learners.
0
Please use only relevant words and avoid writing your question into the tags. For future reference please follow this tips on posting a question 👍
https://www.sololearn.com/Discuss/333866/?ref=app
0
Vivek:- Can I use a variable name after typeof?