r/javaScriptStudyGroup • • Apr 06 '21

Quick Reference of Arrow Function in JavaScript

2 Upvotes

Arrow functions, sometimes referred to as Fat Arrow is a new concise way of writing functions. They utilize a new syntax, => which looks like Fat Arrow. Arrow functions are anonymous and change the way this binds in functions. By using arrow functions, we can avoid typing functions and return keywords and also curly brackets.

In this blog post, I have shared how to write Arrow functions, syntax, use cases.

https://www.sudipta-deb.in/2019/02/quick-reference-of-arrow-function-in.html


r/javaScriptStudyGroup • • Apr 06 '21

10 One-Liner Utility methods in TypeScript/JavaScript

Thumbnail
blog.decipher.dev
3 Upvotes

r/javaScriptStudyGroup • • Apr 01 '21

Please help with this question

0 Upvotes

Consider the JavaScript code below:

class SkyScraper

{

constructor(inLevels, inAddress)

{

this._maxLevels = 100;

this._levels = inLevels;

this._address = inAddress;

}

//... more code goes here

get max()

{

return this._maxLevels;

}

set max(newMax)     

{

if ((typeof(newMax) === 'number') && (newMax > 0))

{

this._maxLevels = newMax;

}

}

}

let tenLP = new SkyScraper(2, "10 Lemur Plaza");

let fiveMA = new SkyScraper(7, "5 Marlan Avenue");

If we were to run the line: tenLP.max = 50;

What would be the value of fiveMA's _maxLevelsattribute?


r/javaScriptStudyGroup • • Mar 30 '21

5 Defining Characteristics of a Great Programmer

Thumbnail
medium.datadriveninvestor.com
5 Upvotes

r/javaScriptStudyGroup • • Mar 29 '21

Everything you should know about JavaScript | Breaking a Loop

Thumbnail
blog.decipher.dev
2 Upvotes

r/javaScriptStudyGroup • • Mar 23 '21

Js help please! I’m not sure what happened but all of a sudden this bit of code is causing an error...what does it mean?

Post image
2 Upvotes

r/javaScriptStudyGroup • • Mar 17 '21

Using async/await inside loops in JavaScript

Thumbnail
shadidhaque.medium.com
4 Upvotes

r/javaScriptStudyGroup • • Mar 16 '21

Are For Loops or ForEach Better in JavaScript?

Thumbnail
blog.decipher.dev
4 Upvotes

r/javaScriptStudyGroup • • Mar 10 '21

Efficient Ways to Clone objects in JavaScript in 2021

Thumbnail
javascript.plainenglish.io
4 Upvotes

r/javaScriptStudyGroup • • Mar 06 '21

When to use and when not to use - return " ";

1 Upvotes

So I've been learning to code, I was able to fly past html/css, but every time I think that I'm beginning to grasp JavaScript concepts my code laughs at me. Here's my question.. why do functions conditionally when I use/don't Return something;

for example: function(some, thing) {

declare some variables -> create a for (loop) { return variable[i]; } another for (loop) { variable[i] += variable; } then i make an if (statement) { return something; } else { return something; } **return final variable; } .....**Like I said, I'm still learning Javascript, this is just a worded example of a function, there is no syntax, no logic, etc. I hope this makes my question a little more coherent.

Summary: I've noticed that objects in a function use -> return "something"; in order to "end a function or object". Sometimes I try to use return variable += variable;, but only variable += variable works.

please excuse my ignorance in terminology + logic here. I'm pretty new to JavaScript so i hope i don't get made fun of for this. If none of this makes any sense please feel free to let me know and i will try to elaborate to the best of my ability.


r/javaScriptStudyGroup • • Mar 01 '21

Project M

0 Upvotes

Hi, My name is Phillip Brown please respond if you are interested on working on project M and are skilled in coding in JavaScript leave me your email address


r/javaScriptStudyGroup • • Feb 27 '21

A experiment on programming in reactive style. Ask for comment. Share. Ask for hobbyists to experiment together.

Thumbnail
github.com
2 Upvotes

r/javaScriptStudyGroup • • Feb 26 '21

Hey guys, checkout the video on Components in Vue.js

Thumbnail
youtube.com
0 Upvotes

r/javaScriptStudyGroup • • Feb 23 '21

5 Git tricks every developer should know about

Thumbnail
js.plainenglish.io
3 Upvotes

r/javaScriptStudyGroup • • Feb 18 '21

Hey guys, checkout the video on using ckeditor on vue.js application

Thumbnail
youtube.com
1 Upvotes

r/javaScriptStudyGroup • • Feb 18 '21

what is the right answer?

1 Upvotes
var savingsAccount = {
  balance: 1000,
  interestRatePercent: 1,
  deposit: function addMoney(amount) {
    if (amount > 0) {
      savingsAccount.balance += amount;
    }
  },
  withdraw: function removeMoney(amount) {
    var verifyBalance = savingsAccount.balance - amount;
    if (amount > 0 && verifyBalance >= 0) {
      savingsAccount.balance -= amount;
    }
  }
};

r/javaScriptStudyGroup • • Feb 13 '21

Hey guys, checkout the video on creating toast notifications using Bootstrap 5 .

Thumbnail
youtube.com
2 Upvotes

r/javaScriptStudyGroup • • Feb 12 '21

Hey guys, checkout the video on creating Beautiful Charts With JavaScript using Chart.js Library

Thumbnail
youtube.com
4 Upvotes

r/javaScriptStudyGroup • • Feb 09 '21

Sorting array of objects, strings and numbers using JavaScript🔥

Thumbnail
tutorialstonight.com
3 Upvotes

r/javaScriptStudyGroup • • Feb 07 '21

JavaScript - Move up, down and sideways in DOM tree🔥

Thumbnail
tutorialstonight.com
9 Upvotes

r/javaScriptStudyGroup • • Feb 07 '21

Animate On Scroll Webpage Using JavaScript - AOS Library

Thumbnail
youtube.com
2 Upvotes

r/javaScriptStudyGroup • • Feb 06 '21

Dynamic Dark/Light Mode On the Web

Thumbnail
levelup.gitconnected.com
1 Upvotes

r/javaScriptStudyGroup • • Feb 04 '21

Short video about Array includes method in javascript

Thumbnail
youtube.com
3 Upvotes

r/javaScriptStudyGroup • • Feb 03 '21

How To Deploy Your Node.js App On AWS With NGINX And SSL

Thumbnail
medium.com
4 Upvotes

r/javaScriptStudyGroup • • Feb 03 '21

How To Deploy Your Node.js App On AWS With NGINX And SSL

Thumbnail
medium.com
3 Upvotes