DEV Community

Cristian Fernando
Cristian Fernando

Posted on

Paracetamol.js馃拪| #43: Explica este c贸digo JavaScript

Explica este c贸digo JavaScript

function sayHi(name) {
  return `Hi there, ${name}`

Enter fullscreen mode Exit fullscreen mode
  • A: Hi there
  • B: Hi there, undefined
  • C: Hi there, null
  • D: ReferenceError

Respuesta en el primer comentario.

Top comments (4)

duxtech profile image
Cristian Fernando

B: Hi there, undefined

En javascript los par谩metros tienen por defecto el valor undefined, esto quiere decir que sino pasamos ning煤n par谩metro a una funci贸n que los necesite tendremos undefined.

punisher49 profile image

@areablogger any way to blacklist non-english posts?? Any tag?

michaeltharrington profile image
Michael Tharrington

Hey there,

I work at DEV as a Community Manager and really must suggest that you think more empathetically about how this question might be received here. You may not mean to be disrespectful, but please understand how this might be discouraging to the author and anyone else writing non-English posts. Please just be more careful in the future and if you have sensitive questions about platform mechanics, just message into and we'll be happy to help.

To be clear, we are trying to do more to offer i18n and localization options across the site because we really want to encourage folks from non-English backgrounds to write more in our community and we want to make sure they are adequately supported. We also want to give individuals the ability to see more posts in the languages that they desire, so hopefully will be improving this over time.

For now, I believe Cristian is doing everything they can to signal to readers that this is a post in Spanish. Their title is in Spanish and their also using the #spanish tag which isn't required but is a great addition!

duxtech profile image
Cristian Fernando

@michaeltharrington thank you very much for leaving that comment. I know that most of the posts are in English, I still haven't mastered it enough to write posts in this language but I hope in the future to be able to contribute posts in English. Greetings.