Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 71379

JavaScript is a versatile, high-level programming language. It is the programming language in all browsers.and can be used for back-end programming with node.js. Use this tag for questions regarding vanilla JavaScript; optionally tagged with an ECMAScript version. If you are using a preprocessor such as TypeScript please tag with that too.

0 votes
2 answers
60 views

Map array of objects and apply condition

I'm mapping through an array of objects and applying conditions on each object by adding a new value according to the condition. I use map in ramda. Can I do this better? events = map(el => { if (! …
Zeyad Etman's user avatar
4 votes
1 answer
409 views

Night Mode using CSS and JavaScript

I created it with CSS and session storage in JavaScript. I want you to review my CSS of night files, I feel it's filled with !important and I'm sure this is a bad practice. … Live: just set the session to night using this JavaScript line sessionStorage.setItem("mode", "night"); and refresh. Alll files. …
Zeyad Etman's user avatar
1 vote
Accepted

Fastest way to retrieve information from array and display in html

There're a lot of things you write them better, In my answer I'll write some of them. Template Literals In ES6 you can use template literals in code meaning: Don't ing_block = '<div class="ingredi …
Zeyad Etman's user avatar
4 votes
1 answer
363 views

Sierpinski’s Gasket Triangle in JavaScript

I wrote the Sierpinski’s Gasket Triangle in JavaScript, but I feel the code can be better, especially from L32 to L47. Could you make it more organized? …
Zeyad Etman's user avatar
1 vote

Shopping Cart with React JS

First things First I cloned it and run it as you wrote in README.md file, As a frontend project it'll be better if you used something like npm to run your project. things you can do better: When to …
Zeyad Etman's user avatar
1 vote

Voting app in JavaScript using Ramda

You can use Destructuring assignment in importing functions from ramdajs. const {compose, reduce, ....} = require('ramda'); instead of using R.compose.
Zeyad Etman's user avatar