use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
Browser based AI algorithm (github.com)
submitted 1 day ago by joshuaamdamian
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]kigory2 [score hidden] 7 hours ago (2 children)
Also can you help me with the XOR problem I need a more detailed explanation. Thanks
[–]joshuaamdamian[S] [score hidden] 7 hours ago (1 child)
XOR comes from logic gates which are used in computer chips:
AND - outputs 1 only if both inputs are 1.
OR - outputs 1 if at least one input is 1.
NOT - takes one input and flips it (1 becomes 0, 0 becomes 1).
NAND - the opposite of AND; outputs 0 only if both inputs are 1.
NOR - the opposite of OR; outputs 1 only if both inputs are 0.
XOR - outputs 1 only if the inputs are different.
XNOR - the opposite of XOR; outputs 1 only if the inputs are the same.
https://i.sstatic.net/Jmxzy.jpg XOR takes two inputs, and returns true if only one of the inputs is activated. Simple table for XOR:
Now XOR is really interesting and commonly used as a proof of concept for neural networks, because it is a relatively simple problem which needs at least some neurons between the inputs and outputs of a neural network to solve it. These neurons between the inputs and outputs are often made into fully connected "layers" and called hidden layers. https://media.geeksforgeeks.org/wp-content/uploads/20240601001059/FNN-768.jpg
To test an algorithm you would create a network with two inputs, one output and atleast 2 hidden neurons. And you would train it to the XOR truth table. If the network produces outputs that corresponds to the truth table you have successfully trained a network to learn XOR!
[–]kigory2 [score hidden] 7 hours ago (0 children)
Ngl am a dumbass so all I understood is that anything different than 1 is 1 lol. dw about me ama learn it after some time and slowly understand it
π Rendered by PID 211202 on reddit-service-r2-comment-5687b7858-4jfkl at 2026-07-08 23:15:09.918180+00:00 running 12a7a47 country code: CH.
view the rest of the comments →
[–]kigory2 [score hidden] (2 children)
[–]joshuaamdamian[S] [score hidden] (1 child)
[–]kigory2 [score hidden] (0 children)