# Visualstudio code settings

**URL:** <https://forum.codewithmosh.com/t/visualstudio-code-settings/6622>\
**Category:** JavaScript\
**Created:** [August 6, 2021, 5:11pm UTC](https://forum.codewithmosh.com/t/visualstudio-code-settings/6622 "2021-08-06T17:11:25Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Satish](https://avatars.discourse-cdn.com/v4/letter/s/aca169/32.png) [@Satish](https://forum.codewithmosh.com/u/Satish)\
**Post date:** [August 6, 2021, 5:11pm UTC](https://forum.codewithmosh.com/t/visualstudio-code-settings/6622/1 "2021-08-06T17:11:25Z")

</div>

Hi everyone I am new to programing kindly can anyone help me with visualstudio settings.and I try to assign a value to variable it’s not takin the value.

let name = ‘ss’;  
console.log(“name”);

And it’s returning ‘name’.

 ![1628322893185_1628322891848_1628322891157_1628322890298_Screenshot (137)](https://us1.discourse-cdn.com/flex020/uploads/codewithmosh/original/2X/8/8005f76a60d2ec3047e8068dc2ea81dfeb159fd6.png)

---

<div class="post-metadata">

**Author:** ![eelsholz](https://avatars.discourse-cdn.com/v4/letter/e/439d5e/32.png) [@eelsholz](https://forum.codewithmosh.com/u/eelsholz)\
**Post date:** [August 7, 2021, 12:54am UTC](https://forum.codewithmosh.com/t/visualstudio-code-settings/6622/2 "2021-08-07T00:54:46Z")

</div>

Try this…

`console.log(name)`

with no quotes. `"name"` is a string, `name` is your variable.

---

<div class="post-metadata">

**Author:** ![Satish](https://avatars.discourse-cdn.com/v4/letter/s/aca169/32.png) [@Satish](https://forum.codewithmosh.com/u/Satish)\
**Post date:** [August 7, 2021, 4:51am UTC](https://forum.codewithmosh.com/t/visualstudio-code-settings/6622/3 "2021-08-07T04:51:01Z")

</div>

Ok I’ll try this

Thankyou

---

<div class="post-metadata">

**Author:** ![Satish](https://avatars.discourse-cdn.com/v4/letter/s/aca169/32.png) [@Satish](https://forum.codewithmosh.com/u/Satish)\
**Post date:** [August 7, 2021, 7:36am UTC](https://forum.codewithmosh.com/t/visualstudio-code-settings/6622/4 "2021-08-07T07:36:24Z")

</div>

I tried that but it showing  
Code language not supported or defined

---

<div class="post-metadata">

**Author:** ![eelsholz](https://avatars.discourse-cdn.com/v4/letter/e/439d5e/32.png) [@eelsholz](https://forum.codewithmosh.com/u/eelsholz)\
**Post date:** [August 7, 2021, 1:23pm UTC](https://forum.codewithmosh.com/t/visualstudio-code-settings/6622/5 "2021-08-07T13:23:35Z")

</div>

In your screenshot of VS Code at the lower right it says `Babel JavaScript`, but maybe that somehow got changed? If so, see if you can click it and switch it back. If you’re still seeing the error, could you post a screenshot?

---

<div class="post-metadata">

**Author:** ![eelsholz](https://avatars.discourse-cdn.com/v4/letter/e/439d5e/32.png) [@eelsholz](https://forum.codewithmosh.com/u/eelsholz)\
**Post date:** [August 7, 2021, 8:24pm UTC](https://forum.codewithmosh.com/t/visualstudio-code-settings/6622/6 "2021-08-07T20:24:39Z")

</div>

fyi When you convert `"name"` to `name`, you may get a deprecation warning about using a variable named `name`. The reason is that [there is already a global variable named `name` in some environments](https://stackoverflow.com/questions/65379554/why-does-my-variable-show-its-deprecated#answer-65379845), so it’s safer to use a different variable name e.g. `firstName`, or you could wrap your code in a function:

```auto
doSomething();

function doSomething() {
  let name = 'ss';
  console.log(name);
}

```

---

<div class="post-metadata">

**Author:** ![Satish](https://avatars.discourse-cdn.com/v4/letter/s/aca169/32.png) [@Satish](https://forum.codewithmosh.com/u/Satish)\
**Post date:** [August 8, 2021, 6:46am UTC](https://forum.codewithmosh.com/t/visualstudio-code-settings/6622/7 "2021-08-08T06:46:10Z")

</div>

Thankyou bro for your response.As you said I changed ‘Babe1’ into ‘JavaScript React’ at first it worked fine but when I changed variable ‘name’ value to ‘sai’ it is showing a massage in below right cornor like ’ Language is not identified’.

 ![Screenshot (140)](https://us1.discourse-cdn.com/flex020/uploads/codewithmosh/original/2X/6/606d6e3a4b1af830a24a10e5c2543ad74465e1ad.png)

---

<div class="post-metadata">

**Author:** ![eelsholz](https://avatars.discourse-cdn.com/v4/letter/e/439d5e/32.png) [@eelsholz](https://forum.codewithmosh.com/u/eelsholz)\
**Post date:** [August 8, 2021, 1:51pm UTC](https://forum.codewithmosh.com/t/visualstudio-code-settings/6622/8 "2021-08-08T13:51:57Z")

</div>

Sorry, I meant that `Babel JavaScript` is what it should probably be set to. Do you see that same error when it is set to Babel `JavaScript`?

---

<div class="post-metadata">

**Author:** ![Satish](https://avatars.discourse-cdn.com/v4/letter/s/aca169/32.png) [@Satish](https://forum.codewithmosh.com/u/Satish)\
**Post date:** [August 9, 2021, 6:41am UTC](https://forum.codewithmosh.com/t/visualstudio-code-settings/6622/9 "2021-08-09T06:41:26Z")

</div>

No problem bro.I changed it back to Babe1 JavaScript now it’s working fine but I am not getting any results in Terminal, right now I am executing my programe in web console and it’s also showing some errors like 'Bartender API access denied and ‘DevTools failed to load source map’

 ![Screenshot (142)](https://us1.discourse-cdn.com/flex020/uploads/codewithmosh/original/2X/e/e2ac3dca8c74ac8a078dfb96cacc192b85912892.png)

---

<div class="post-metadata">

**Author:** ![eelsholz](https://avatars.discourse-cdn.com/v4/letter/e/439d5e/32.png) [@eelsholz](https://forum.codewithmosh.com/u/eelsholz)\
**Post date:** [August 10, 2021, 12:00am UTC](https://forum.codewithmosh.com/t/visualstudio-code-settings/6622/10 "2021-08-10T00:00:18Z")

</div>

Those are just warnings, unrelated to what you are working on, and I think it’s fine to ignore them. If you want a clean console, you can go to `about:blank` to get a blank page where you won’t see errors/warnings from other scripts, and that why you know that any errors you see are related to whatever you happened to type in the console.

---

<div class="post-metadata">

**Author:** ![Satish](https://avatars.discourse-cdn.com/v4/letter/s/aca169/32.png) [@Satish](https://forum.codewithmosh.com/u/Satish)\
**Post date:** [August 10, 2021, 5:53pm UTC](https://forum.codewithmosh.com/t/visualstudio-code-settings/6622/11 "2021-08-10T17:53:44Z")

</div>

Sure I will try that one
