---
title: "Discussion on \"JavaScript interview questions\" | Hashnode"
description: "Discussion on \"JavaScript interview questions\". console.log(\"5\" > \"11\") =>true console.log(\"5\" > 11) =>false console.log(\" \" > -1) =>true console.log(\"you \" > 1) =>false Ans: for string letter by letter comparison takes place, when values of different types are compared, and they get converted int..."
url: "https://hashnode.com/posts/javascript-interview-questions/65644d55d54db0ea946f19f0"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [JavaScript interview questions](https://debnathpuja.hashnode.dev/javascript-interview-questions?utm_source=hashnode&utm_medium=feed)

console.log("5" > "11") =>true console.log("5" > 11) =>false console.log(" " > -1) =>true console.log("you " > 1) =>false Ans: for string letter by letter comparison takes place, when values of different types are compared, and they get converted int...

Nov 27, 2023 · 2 min read · debnathpuja.hashnode.dev  
Updated Oct 1, 2024  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#jsinterview](https://hashnode.com/tag/jsinterview)

## Written by

[Puja Debnath](https://hashnode.com/@debnathpuja001)

@debnathpuja001

  
[View profile](https://hashnode.com/@debnathpuja001)

student

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
