---
title: "Discussion on \"Rust for JavaScript Developers\" | Hashnode"
description: "Discussion on \"Rust for JavaScript Developers\". The Rust Langauge\nRust is a multi-paradigm programming language that focusses on performance and safety. The language has been around since 2010 and it has been the most loved language in the StackOverflow developer survey since 2016. You can do anyt..."
url: "https://hashnode.com/posts/rust-for-javascript-developers/5ec6a0c6a7a2c43b12374342"
---

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

Discussion

# [Rust for JavaScript Developers](https://vilagedeveloper.hashnode.dev/rust-for-javascript-developers?utm_source=hashnode&utm_medium=feed)

The Rust Langauge Rust is a multi-paradigm programming language that focusses on performance and safety. The language has been around since 2010 and it has been the most loved language in the StackOverflow developer survey since 2016. You can do anyt...

May 21, 2020 · 4 min read · vilagedeveloper.hashnode.dev  
Updated Sep 27, 2023  
Read the article

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

## Written by

[Abimbola Oladele](https://hashnode.com/@consoledot)

@consoledot · Lagos

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

Software Developer

## Responses 2

Markdown supported · ⌘↵ to post

[fengxh](https://hashnode.com/@fengxh)

[May 22, 2020](https://hashnode.com/posts/rust-for-javascript-developers/5ec6a0c6a7a2c43b12374342/comment/5ec75d38627c645c120acf4c)

I'm sorry, but there is an error in javascript code about `ternary operator`

```
let age = 17 
if(age >= 18){
    console.log(" You are old enough to vote");
}else{
   console.log("Come back when you are 18");
}

// Ternary Operator 
if age >= 18 ? console.log(" You are old enough to vote") : console.log("Come back when you are 18");
// here we don't need if identifier, just remove it
```

[Abimbola Oladele](https://hashnode.com/@consoledot)

[May 22, 2020](https://hashnode.com/posts/rust-for-javascript-developers/5ec6a0c6a7a2c43b12374342/comment/5ec75d38627c645c120acf4c#reply-5ec79aa2a7a2c43b12374d79)

Thanks for pointing out the Error, didn't even notice it. Editing now

[Abimbola Oladele](https://hashnode.com/@consoledot)

[May 22, 2020](https://hashnode.com/posts/rust-for-javascript-developers/5ec6a0c6a7a2c43b12374342/comment/5ec75d38627c645c120acf4c#reply-5ec79ba7627c645c120ad412)

Yes they are not ternary operators, it's just the closet thing I could compare with JavaScript syntax. Thanks for pointing it out. [j](https://hashnode.com/@chilimatic)

[j](https://hashnode.com/@chilimatic)

[May 22, 2020](https://hashnode.com/posts/rust-for-javascript-developers/5ec6a0c6a7a2c43b12374342/comment/5ec75d38627c645c120acf4c#reply-5ec79e31627c645c120ad426)

[Abimbola Oladele](https://hashnode.com/@vilagedeveloper) I know, that's why I didn't mention it on the first read, but since some one else pointed it out. Also match is not a switch but ... for the sake of a javascript perspective you could use it that way :D true.

anyhow good article, I don't want to sidetrack to much :)

[Muhammad Sahil](https://hashnode.com/@mdsahil)

[May 22, 2020](https://hashnode.com/posts/rust-for-javascript-developers/5ec6a0c6a7a2c43b12374342/comment/5ec748fb627c645c120aceed)

Nice comparisons Really liked it
