teleren/devto huggingface dataset:
Es momento de aprender JavaScript!
Tags: achieve, advantages, ai, american
Published: 2022-08-09 15:39:00

---
title: Es momento de aprender JavaScript!
published: true
date: 2022-07-13 21:02:00 UTC
tags: achieve,advantages,ai,american
canonical_url: https://blog.marnylopez.com/2022/07/es-momento-de-aprender-javascript.html
---


## ¿Qué es JavaScript?

JavaScript es un lenguaje de programación basado en texto que se usa tanto en el lado del cliente como en el lado del servidor y que le permite hacer que las páginas web sean interactivas. Mientras que HTML y CSS son lenguajes que dan estructura y estilo a las páginas web, JavaScript proporciona a las páginas web elementos interactivos que atraen al usuario. Los ejemplos comunes de JavaScript que puede usar todos los días incluyen el cuadro de búsqueda en Amazon, un video de resumen de noticias incrustado en The New York Times o actualizar su cuenta de Twitter.

## ¿Quien utiliza JavaScript?

Javascript es utilizado por programadores de todo el mundo para crear contenido web dinámico e interactivo, como aplicaciones y navegadores.

## ¿Porque aprender JavaScript?

Además de las posibilidades ilimitadas, existen muchas razones para que los desarrolladores web usen JavaScript en lugar de otros lenguajes de programación:

- JavaScript es el único lenguaje de programación nativo del navegador web
- JavaScript es el lenguaje más popular
- Hay un umbral bajo para empezar
- Es un idioma divertido de aprender.

  

## ¿Como aprender JavaScript?

Existen cientos de maneras de aprender JavaScript, puedes aprenderlo por tu cuenta investigando en internet o comprar cursos en plataformas en linea... 

## ¿Algun curso de JavaScript que recomiendes?

Si estas interesado en tener una guia para aprender JavaScript puedes adquirir mi nuevo curso de JavaScript! Si! Un curso de JavaScript barato y con el contenido curado, asi estas seguro de que estas aprendiendo la habilidad de la manera correcta y preparandote para el futuro!.

Por tiempo limitado puedes utilizar este link para adquirir mi curso de JavaScript a un precio super especial de introduccion. El curso se actualiza todas las semanas con contenido nuevo! Y al final a todos los que se encuentren inscritos en este curso les estaremos regalando un cupon adicional para mi siguiente curso de programacion, que ya esta siendo creado!.

[![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgh4zIkwtcV_yFFrXHv-Q_bGRz2010y6UW2BkVt6g8-oO6EebOesB68kVuO1Kf-_vn0o5GNOy0ctZm-SkSR7hxozEJzI9cizkYjH3pU2BjPVmV-d57PtGKiXChOcrTtFDGDrZj4fSvdr7j5c1zTBYjxD6_9FvC32y3qyZhMgBIIJ1Gicio82FAOqCqOpw/w200-h182/giphy.gif)](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgh4zIkwtcV_yFFrXHv-Q_bGRz2010y6UW2BkVt6g8-oO6EebOesB68kVuO1Kf-_vn0o5GNOy0ctZm-SkSR7hxozEJzI9cizkYjH3pU2BjPVmV-d57PtGKiXChOcrTtFDGDrZj4fSvdr7j5c1zTBYjxD6_9FvC32y3qyZhMgBIIJ1Gicio82FAOqCqOpw/s306/giphy.gif)

Te espero en mi nuevo curso de JavaScript! 

[APRENDE JAVASCRIPT AHORA A UN SUPER PRECIO](https://www.udemy.com/course/javascript-de-cero-a-experto/?referralCode=09298F1C917D770920C9)
LeetCode — Valid Parentheses
Tags: javascript, beginners, programming, challenge
Published: 2022-07-13 20:49:00

Given a string s containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid.

## Solution 

```javascript
var isValid = function(s) {
let arr = [];
const bracketObj = {
"{":"}",
"(":")",
"[":"]"
}
for(let i=0;i<s.length;i++){
   if(s[i] =="{"|| s[i] == "(" || s[i] == "["){
       arr.push(s[i]);
   }else if(bracketObj[arr.pop()] !== s[i]){
   return false;
   }
}
return arr.length === 0 ;
};
```
**Test Cases Example**

`Input: s = "()"
Output: true`

`Input: s = "()[]{}"
Output: true`

`Input: s = "(]"
Output: false`

`Input: s = "([)]"
Output: false`
`
`Input: s = "(("
Output: false`
**
CodeSandBox Link **
[
https://codesandbox.io/s/valid-parentheses-1gs732?file=/src/index.js](url)
Is CMake part of Android Studio?
Tags: android, cmake
Published: 2022-07-13 20:43:24

Is CMake part of Android Studio? When I tried to do a Gradle Sync in Android Studio, I got an error that the CMake is too early a version and I need to update it. But I get this error even if I uninstall CMake. This tells me that CMake must be embedded somehow in Android Studio. So, how can I fix this? Please help.

This happens even if I remove cmake from the command line. So it seems that cmake is embedded into Android Studio. So how do I update cmake if it is part of Android Studio somehow?

When running the Gradle Sync command in Android Studio I get an error message that the CMake is outdated and I need to download a later version.
Magic Button 🧙‍♂️
Tags: javascript, button, marketing, discuss
Published: 2022-07-13 20:22:47

{% codepen https://codepen.io/eitanwaxman/pen/jOzMgqJ %}

This button may look like any plain old button but actually, it's **magic**.

Or at least sort of. 

If you refresh the page this button may change. 

**Why?**
This button logs clicks and runs tests based on a predefined sample size for optimization.

In other words, it does automatic A/B testing to provide the button that will convert the most. 

It still has a limited range of tests and the integration method is a little quirky but I think this is a viable prototype for a very useful embeddable.  

You can see the full documentation on [my GitHub](https://github.com/eitanwaxman/magic-button).

Looking forward to your feedback!
Mentoring in exchange for conversational practice
Tags: android
Published: 2022-07-13 20:03:10

---
title: Mentoring in exchange for conversational practice
published: true
description: Hi! I'm well experienced android engineer. I'm writing code in kotlin and java for 6 years. I can help you with your android coding journey if you are native in English and can just correct me sometimes  
tags: android
---
A new engineering newsletter
Tags: news, javascript, webdev, beginners
Published: 2022-07-13 19:33:19

Ready for the best of the best every. single. day. well we have just that for you. Introducing [TheDailyEng](www.thedailyeng.com) newsletter. We will send you a daily update on startups, new tech, tips & tricks and much more! Get started today by heading to [TheDailyEng](www.thedailyeng.com)
Paracetamol.js💊| #166: Explica este código JavaScript
Tags: javascript, webdev, spanish, programming
Published: 2022-07-13 19:12:08

## **<center>Explica este código JavaScript</center>**
#### <center>**Dificultad:** <mark>Intermedio</mark></center>

```js
const porReferencia = (arr) => {
  arr[0] = 0;
  return arr;
}
let arr = [1,2,3];
console.log(porReferencia(arr));
console.log(arr);
```

A. `[0, 2, 3]`, `[1, 2, 3]`
B. `[0, 2, 3]`, `[0, 2, 3]`
C. `[1, 2, 3]`, `[1, 2, 3]`
D. `[1, 2, 3]`, `[0, 2, 3]`

Respuesta en el primer comentario.

---
Benefits of Exercising at Home for Women
Tags: womensbras, sportsbras, brasforwomens, womensportsbra
Published: 2022-07-13 19:10:03

## Introduction
The present times are all about keeping up the fitness game, especially in this digitally fired era and higher standards set by Gen-Z. Exercising smartly at home is the best choice for women. You ladies just need to stay motivated, focused, and consistent with exercise to achieve the results. All this seems complicated to do at home but can be of your benefit. Exercising at home for women comes with many perks.

**Accessible Hours**
The environment matters greatly when your goal is to stay fit and healthy. Home exercising gives you the benefit of setting a fitness schedule according to your need. You won’t have to stick with a hard and fast program and keep up with the strict timings. Your exercise plan can be accustomed to your convenience and get along with your tight routine. No more exercising at odd gym hours! Plus, you will not have to wait in the queue to use your favorite machine.

**Cost-effectiveness**
Home exercising can be cost-effective for you, as you will not have to pay for expensive gym subscriptions to use high-end exercising machinery. It can be simple and cost-cutting at home. You just need to buy some affordable exercising equipment to facilitate your workouts; a resistance band, some easy weights, or exercise balls according to your ease.

**Comfort of Home**
Exercising at the gym can be of great discomfort for women, getting ready, maintaining a perfect appearance, or getting dressed especially for exercising, is too much for women who are responsible to do many other important things. Here exercising at home is a blessing for women. You don’t have to get dressed just a pair of relaxing yoga pants paired with a [women sports bra](https://www.alay.co/collections/sports-bras) is all you need, to stay active and exercise.

**Custom exercise strategy**
Your pace and your physical needs are equally important while exercising. Exercising at home gives you that edge. You can customize your exercising strategy according to your bodily needs, take breaks when needed, sip water, take a deep breath, normalize your heartbeat, listen to your body, and continue to attain your fitness goals!

**Health**
Staying home and exercising can keep you on track in terms of healthy eating. You can count your calorie intake and have a variety of food options to select from before and after your exercise regime. In the gym, there are not many healthy options available and you might get distracted and eat unhealthily.

**Hygiene**
Along with health benefits home exercising for women is also hygienic. There’s no contact with germ-infested machinery and sweaty bodies. Along with this, you can blast your favorite music and ace through your exercises. They are no more stopping you from enjoying and getting energized!

**Conclusion**
Exercising in the comfort of your home and space is always appealing. It does take a little time and effort to exercise at home, but it is fun, safe, and effective for women.
Where did the plist go?
Tags: xcode, swift, beginners, productivity
Published: 2022-07-13 19:04:47

If you’ve recently fired up XCode 13 and created a new SwiftUI app, you’ll soon realize that Info.plist has gone missing. For some swift veterans, that might bring up flashbacks of the missing AppDelegate that surfaced in a prior XCode release.

No worries, it's a ***feature*** not a bug. 

According to the XCode 13 [release notes](https://developer.apple.com/documentation/xcode-release-notes/xcode-13-release-notes):

> Projects created from several templates no longer require configuration files such as entitlements and Info.plist files. Configure common fields in the target’s Info tab, and build settings in the project editor. These files are added to the project when additional fields are used. 

While it's still [possible](https://useyourloaf.com/blog/xcode-13-missing-info.plist/) to include the plist, moving forward, most Swift developers will find that it's much easier to work with. There is a new info section within the build settings; So just select the project's info tab and add the appropriate keys as you had previously had done with the plist.


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ojpvt4gv92uqxwf1tckc.png)

The info section and plist is generally used to provision additonal capibility for your application.  Most common usage is setting the **privacy** messages a user sees when accessing the camera or microphone for the first time.  So when you're building your next Dolby.io [Communications](https://docs.dolby.io/communications-apis/docs/getting-started-with-ios?utm_medium=referral&utm_campaign=devrel&utm_source=devto&utm_term=plist) or [Streaming](https://docs.millicast.com/docs/ios?utm_medium=referral&utm_campaign=devrel&utm_source=devto&utm_term=plist) app with Swift, you'll need remember to set the Camera and Microphone Privacy keys in the info section of the build settings, exactly the same way you've been doing it with the plist for years.

It's important to be crystal clear about your intended use of those features, and failing to do so may end up as delays or rejections of your app during Apple's review process. 

Once again these changes are part of Apple's ***Less is More*** design philosophy makes the developer experince better with fewer files to manage. 

With each new release of Xcode, It's easy to forget that the tools also evolve, and  it's highly recommended and best practice to review the latest release notes for such nuggets of information.
Exodus Effect - Reviews, Results, Price And Benefits?
Tags: webdev, javascript, beginners, programming
Published: 2022-07-13 18:43:54

[Exodus Effect](url) When in the road you can get instant toothache relief with the help of clove oil and peppermint necessary. Both these oils are natural Exodus Effect Relief oil killers and they also help one to get gone the Exodus Effect immediately. They can be purchased from any store on the queue and you may need to apply a little level of oil on the cotton bud to the affected enamel. You should be careful and not apply the oil inside the gum which is the tongue as that can result in a burning sensation. These oils are perfect for adults but a person have are along with a child that is experiencing a toothache you might give him or her instant toothache relief with peppermint oil given that it is weaker than clove oil. Peppermint is less offensive in taste than clove additionally helps children to take it [](https://www.outlookindia.com/outlook-spotlight/exodus-effect-holy-book-anointing-oil-ingredients-works-or-waste-of-money-scam-exposing-reports--news-208597)
https://www.youtube.com/watch?v=k_DwU1xqD0I
https://public.flourish.studio/story/1623847/
https://www.indiaforums.com/forum/topic/5297079
https://www.click.in/gurgaon/exodus-effect-reviews-price-benefits-and-results-c75-v46591157
https://community.onespan.com/forum/exodus-effect-it-scam-or-legit-results-and-reviews
https://exoduseffectfacts.clubeo.com/news/2022/07/13/exodus-effect-reviews-results-price-and-benefits
https://techplanet.today/post/exodus-effect-is-it-a-scam-or-legit-results-and-reviews
https://works.bepress.com/exoduseffectfacts/1/
https://sites.google.com/view/exoduseffect-2022/
https://groups.google.com/g/exodus-effect-info/c/w05kBE7gsS8
https://exoduseffectbuys.blogspot.com/
https://wakelet.com/wake/nP6f-SaH-VkUA9BHG7rvZ
https://caramellaapp.com/exoduseffectfact/tU7erbifa/exodus-effect
https://the-dots.com/projects/exodus-effect-price-results-reviews-does-it-work-797217
https://community.webmonetization.org/exoduseffectbuys
http://sdlcforum.com/question/exodus-effect-is-it-a-scam-or-legit-results-and-reviews/
https://www.surveymonkey.com/r/DHKQ2P8
https://hackmd.io/@exoduseffectbuys/B1msPF2sc
https://ndsaokhna.podbean.com/
https://lexcliq.com/exodus-effect-reviews-results-price-and-benefits/ 
https://www.facebook.com/Exodus-Effect-106845915431938
https://www.pinterest.com/pin/883972233084284420/
https://www.scoop.it/topic/exodus-effect-by-exodus-effect-7
https://twitter.com/exoduseffectfa1
https://tautaruna.nra.lv/forums/tema/48427-exodus-effect-is-it-a-scam-or-legit-results-and-reviews/
https://www.launchora.com/story/exodus-effect-reviews-results-price-and-benef
https://www.sportsblog.com/exoduseffectbuys/
https://minimore.com/b/M9XR$/1
Regex validate PIN code
Tags: programming, beginners, python, discuss
Published: 2022-07-13 18:36:50

ATM machines allow 4 or 6 digit PIN codes and PIN codes cannot contain anything but exactly 4 digits or exactly 6 digits.

If the function is passed a valid PIN string, return `true`, else return `false`.

Examples (Input --> Output)

```
"1234"   -->  true
"12345"  -->  false
"a234"   -->  false
```

Sample Tests
```
import codewars_test as test
from solution import validate_pin

@test.describe("Fixed Tests")
def fixed_tests():
    @test.it("should return False for pins with length other than 4 or 6")
    def basic_test_cases():    
        test.assert_equals(validate_pin("1"),False, "Wrong output for '1'")
        test.assert_equals(validate_pin("12"),False, "Wrong output for '12'")
        test.assert_equals(validate_pin("123"),False, "Wrong output for '123'")
        test.assert_equals(validate_pin("12345"),False, "Wrong output for '12345'")
        test.assert_equals(validate_pin("1234567"),False, "Wrong output for '1234567'")
        test.assert_equals(validate_pin("-1234"),False, "Wrong output for '-1234'")
        test.assert_equals(validate_pin("-12345"),False, "Wrong output for '-12345'")
        test.assert_equals(validate_pin("1.234"),False, "Wrong output for '1.234'")
        test.assert_equals(validate_pin("00000000"),False, "Wrong output for '00000000'")
    
    @test.it("should return False for pins which contain characters other than digits")
    def _():
        test.assert_equals(validate_pin("a234"),False, "Wrong output for 'a234'")
        test.assert_equals(validate_pin(".234"),False, "Wrong output for '.234'")
    
    @test.it("should return True for valid pins")
    def _():
        test.assert_equals(validate_pin("1234"),True, "Wrong output for '1234'")
        test.assert_equals(validate_pin("0000"),True, "Wrong output for '0000'")
        test.assert_equals(validate_pin("1111"),True, "Wrong output for '1111'")
        test.assert_equals(validate_pin("123456"),True, "Wrong output for '123456'")
        test.assert_equals(validate_pin("098765"),True, "Wrong output for '098765'")
        test.assert_equals(validate_pin("000000"),True, "Wrong output for '000000'")
        test.assert_equals(validate_pin("123456"),True, "Wrong output for '123456'")
        test.assert_equals(validate_pin("090909"),True, "Wrong output for '090909'")

```


Solution- ###Python

```
def validate_pin(pin):
    if(type(pin) != str or len(pin) not in [4, 6]):
        return(False)
    for c in pin:
        if c not in "0123456789":
            return(False)
    return(True)
```
Write a program to create a class count objects and calculate the number of objects that has been created in realtime.
Tags: javascript, beginners, python, react
Published: 2022-07-13 18:12:42

Hey Everyone,

so today we discuss about the how can we count the object of any class 
There is few steps below-

1. First we create the class **count_objects**

2. Then we will **initialize class variable (count=0**) because we want to count the objects not methods 

3. Then we create the constructor we create always by using __init__ (constructor)

4.Than Create an object of **count_objects** class with attributes

5.And Finally print the total number of object available in 
**count_objects** class 

## here lets see the Example-

```
# Create a count_objects class
class count_objects:

    # initialise class variable
    count = 0

    # Constructor method

    def __init__(self, name, age):

        # instance variable or object attributes
        self.name = name
        self.age = age

        # incrementing the class variable by 1
        # whenever new object is created
        count_objects.count += 1

    # Create a method for printing details

    def printDetails(self):

        print(self.name, self.age, "years old")

# Create an object of Student class with attributes

student1 = count_objects('Ankit Rai', 22)
student2 = count_objects('Aishwarya', 21)
student3 = count_objects('Shaurya', 21)
student4 = count_objects('shiv', 1)

# Print the total no. of objects cretaed

print("Total number of objects created: ", count_objects.count)
```
So you can copy that code and print in your editor which editor you use and then see the result .


I hope this Answer will help you to solve your problem so if you like the article so just like and share the post 

Follow for more updates and visit -https://codersvillage.com/

Thank you Everyone
Shivani Tiwari
Codewars Challenge Day2: Break camelCase
Tags: javascript, python, challenge, codewars
Published: 2022-07-13 18:03:01

**Name Kata:** [Break camelCase](https://www.codewars.com/kata/5208f99aee097e6552000148/) / 6kuy

# Details
Complete the solution so that the function will break up camel casing, using a space between words.
### Example
`'camelCase' -> 'camel Case'`

# My Solutions
## JavaScript
`const solution = (str) => {
  return str.split(/\s+|\_+|(?=[A-Z])/gm).join(' ')
}`

## Python
`def solution(string: str) -> str:
    res = ''
    for symbol in string:
        if symbol.upper() == symbol:
            res = res + ' ' + symbol
        else:
            res = res + symbol
    return res`
change my title's color with ReactJs
Published: 2022-07-13 12:18:13

hello i don't want doesn't work in my code, i would like to put the color green on my title and it does not work , please  tell me what is wrong with my code 

```
import React, { Component } from "react";
import { Mycars } from "./components/Mycars";
import "./App.css";

class App extends Component {
  state = {
    titre: "Mon catalogue de voitures",
    color: "green",
  };
  render() {
    return (
      <div className="App">
        <Mycars
          style={{ color: "red" }}
          color={this.state.color}
          title={this.state.titre}
        />
      </div>
    );
  }
}

export default App;

function Wrapper({ children }) {
  return (
    <div
      style={{
        backgroundColor: "pink",
        width: "400px",
        padding: "10px",
        margin: "5px auto",
      }}
    >
      {children}
    </div>
  );
}

export default Wrapper;

import React, { Component } from "react";
import Car from "./Cars";
import MyHeader from "./MyHeader";
import Wrapper from "./Wrapper";

export class Mycars extends Component {
  state = {
    cars: ["Ford", "Mercedes", "Peugeot"],
  };
  render() {
    return (
      <div>
        <Wrapper>
          <MyHeader myStyle={this.props.color}>{this.props.title}</MyHeader>
        </Wrapper>

        <Car color="red">{this.state.cars[0]}</Car>
        <Car>{this.state.cars[1]}</Car>
        <Car color="yellow">{this.state.cars[2]}</Car>
      </div>
    );
  }
}

const MyHeader = ({ myStyle, children }) => (
  <h1 style={{ color: { myStyle } }}>{children}</h1>
);

export default MyHeader;

import Wrapper from "./Wrapper";

const Car = ({ children, color }) => {
  let colorInfo = "";

  if (color) {
    colorInfo = color;
  } else {
    colorInfo = "Néant";
  }

  return (
    children && (
      <Wrapper>
        <p>Marque: {children} </p>
        <p>Couleur: {colorInfo} </p>
      </Wrapper>
    )
  );
};

export default Car;

```
Mailspring/email client inverts colors in dark mode
Tags: javascript, webdev, email, css
Published: 2022-07-13 17:47:44

Hey, Mailspring / other mail client team, I found out your little secret, thanks for spending my time solving mystery on why the heck my dark email becomes white and shiny?!

## Solution

In your `body` tag or in your `.css` add:
```css
  body {
    filter: none !important;
  }
  img {
    filter: none !important;
  }
```

Next time your email client will do this shit, please take a look into the source code (Ctrl + Shift + I) and search for `filter` or something like that, usually `inline` styles will overlap any other styles and thing will work

## ENJOY!