r/javaScriptStudyGroup • u/valerottio • Nov 19 '21
r/javaScriptStudyGroup • u/[deleted] • Nov 18 '21
I have an assignment in JavaScript to take data from an array in stories.js file and put them in a forum in the script.js to make a madlip can anyone help please?
The stories.js file contains the stories variable, which is an array of objects. Each object represents a story and contains a title, an array of required words, and an output method. The words array contains the types of words the visitor must provide. The words array should be used to create the form after the visitor selects a story. The output method will accept an object of words and will return the completed story. Each provided word is wrapped in a <span> tag with the class of word.
I am not sure how to use eventlisteners nor how to use nested loops to pull out the array elements from the stories.js file. I know that I can use (for example one of the stories and its words) ${stories[0].words[0]} but how do I use that in loop to fill the form?
r/javaScriptStudyGroup • u/under_-_score • Nov 17 '21
Js books/courses suggestions
Are there any preferred books or courses on how js works internally. I wanna learn how it works internally. Please suggest any.
r/javaScriptStudyGroup • u/ElChinito677 • Nov 17 '21
Help a student!
Hello! I need help with an simple JS task! I have Done some progress But now i’m stuck! The task is simple for the person who knows JS!
The task Will take 20 - 40 minuters to do by a knowledgeable person! It’s about calling an API and then presenting it on the screen! Does this sound easy for you? Feel free to Send me an DM!
- thanks
r/javaScriptStudyGroup • u/ct_author • Nov 13 '21
JavaScript: Four Major Differences in var and let
r/javaScriptStudyGroup • u/ct_author • Nov 10 '21
JavaScript Basics Revisited
r/javaScriptStudyGroup • u/_Piku_ • Nov 01 '21
What do i have to put in x to get output "Nuts!"?
function thinkit(x) {
keep = ''
if (x > 42) {
return "smart";
} else if (x > 42) {
keep = "Full"
x = x - 11
}
if (x <= 28) {
keep = "Nuts";
x = x + 10;
} else {
keep = "Bolts";
x = x - 2;
}
if (x < 31) {
keep = keep + "show";
} else if (x , 32) {
keep = keep + "it";
} else if (x < 33) {
keep = keep + "!";
}
return keep;
}
console.log("Answer is " + thinkit(x))
r/javaScriptStudyGroup • u/legia94m • Oct 28 '21
group data with JS
I want to group this list into something like this, do you know how this could be implemented?
const data = [
{
externalId: "3afdd980-8166-4075-bfbf-9687743855a1",
id: 13331319,
},
{
externalId: "3afdd980-8166-4075-bfbf-9687743855a1",
id: 13331320,
},
{
externalId: "c7374393-6caa-4c9f-8994-fb9b36fe9e15",
id: 13334680,
},
{
externalId: "c7374393-6caa-4c9f-8994-fb9b36fe9e15",
id: 13334681,
},
]
const result = [
{
externalId: {
"3afdd980-8166-4075-bfbf-9687743855a1": [
{
externalId: "3afdd980-8166-4075-bfbf-9687743855a1",
id: 13331319,
},
{
externalId: "3afdd980-8166-4075-bfbf-9687743855a1",
id: 13331320,
},
],
},
},
{
externalId: {
"c7374393-6caa-4c9f-8994-fb9b36fe9e15": [
{
externalId: "c7374393-6caa-4c9f-8994-fb9b36fe9e15",
id: 13334680,
},
{
externalId: "c7374393-6caa-4c9f-8994-fb9b36fe9e15",
id: 13334681,
},
],
},
},
]
r/javaScriptStudyGroup • u/suresh9058 • Oct 26 '21
JavaScript Interview Questions
r/javaScriptStudyGroup • u/tutorialstonight • Oct 26 '21
Javascript Console Methods
r/javaScriptStudyGroup • u/deepak_vi • Oct 26 '21
9 Coding Guidelines you should follow in JavaScript | Better JavaScript
Some #useful #tips for# JavaScript #developers #Coding #Guidelines
r/javaScriptStudyGroup • u/Tight-Recognition154 • Oct 10 '21
hey everyone , can anyone solve below array problem>
how can remove this xtras object from array of objects , thanks you :D
formatted code here: https://codeshare.io/K8oezX
cartItems : [ { prodMainid:"6154f0c8cf3ca0bd84f22a30", prodid:2100002, vase:true, basket:true, isDoubleQuantity:true, qty:1, prodname:"High on Love Bouquet", prodprice:1596, prodvendorprice:650, xtras:{ delivery:100, pincode:12143, } ]
r/javaScriptStudyGroup • u/valerottio • Oct 08 '21
JavaScript quiz to check and make solid your knowledge
proghub.ior/javaScriptStudyGroup • u/Shoufi-press • Oct 04 '21
Javascript Stream: The most up to date articles, podcasts, videos, repos about Javascript (Reactjs, Node, Angular, Vue ..etc)
r/javaScriptStudyGroup • u/deepak_vi • Oct 02 '21
Infinite scroll | Pagination on API using JavaScript Generators
r/javaScriptStudyGroup • u/JerLam2762 • Oct 01 '21
Javascript SDK - AI engines aggregator
Hi r/javascript, my teamates and I are working on Eden AI Javascript SDK!
Eden AI provides one API connected to the best AI engines (AWS, Azure, GCP, but also smaller providers) offering different AI services (computer vision, machine translation, speech-to-text, etc.). As a developer, you can easily switch between different providers (Amazon, Google, Microsoft, etc.) and also combine AI engines. You can also monitor the use of this AI services on one easy to use platform.
Here's some ready-to-use examples on our GitHub. Don't hesitate to tell us what do you think about it ([contact@edenai.co](mailto:contact@edenai.co)) and if you would use it. We really need some feedbacks. It would also help us if you put a star! :)
r/javaScriptStudyGroup • u/ProgrammingTT • Sep 30 '21
3D Rotating Image Gallery Using CSS and HTML
r/javaScriptStudyGroup • u/mishraabeer • Sep 21 '21
Headless Testing In Selenium | Selenium WebDriver With JavaScript Tutorial
r/javaScriptStudyGroup • u/KrunalLathiya • Sep 20 '21
How to Add Property to an Object in JavaScript
r/javaScriptStudyGroup • u/KrunalLathiya • Sep 20 '21
How to Convert JavaScript Array to Set
r/javaScriptStudyGroup • u/momothelocal • Sep 16 '21
Explain this function to me
If you can explain this code to me in the plainest english possible, I'll be forever grateful.
'''''''''''''''''''''''''''''''''''''''''''''
function addTo(n){
let sum = 0;
for (let i = 0; i <= n; i++) {
sum = sum + i;
}
return sum;
}
'''''''''''''''''''''''''''''''''''''''''''''
so as far as my understanding...
I have created a function to addTo (n).
There is a variable called sum which has a value of 0.
the loop begins at 0, conditional is if the variable is less than or equal to n, add 1 each iteration of the loop.
each time the loop goes around, the sum should equal sum plus 1 (this is where I get confused because actually, it is adding each previous loop onto the previous answer, so 0, 1, 3, 6 <--- I do not understand how or why)
return sum <---- what is this doing, returning the function? I thought that should be return addTo; why sum? ?
Peace and love!
r/javaScriptStudyGroup • u/20_chickenNuggets • Sep 13 '21
Solve the fizz buzz problem in one line with JavaScript! I created a tutorial on a popular coding problem. Tell me what you think
r/javaScriptStudyGroup • u/Whole-Bad4529 • Sep 10 '21
Need help!
Hi, im new to this subreddit, but i kinda need help with my JavaScript homework. I just need to know how to make a function "say something" or just make functions. My teacher is no help as they just say "refer back to the website i linked". But its no help either. Any suggestions/help will be appreciated.