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 219478

Object-oriented programming is a programming paradigm using "objects": data structures consisting of data fields and methods together with their interactions.

4 votes
2 answers
5k views

JavaScript: Parking lot simplified OOD

I was trying to designing a simplified parking lot management system. It has three types of slots (s,m,l). The goal here is that we want to make the placement/release of cars as efficient as possible, …
Joji's user avatar
  • 325
1 vote
1 answer
66 views

JavaScript: Text Processor

I been trying to implement a text processor in JavaScript that can handle 4 different types of operations: append, backspace, undo, redo. The input for this text processor is an array of arraries of a …
Joji's user avatar
  • 325
2 votes
1 answer
1k views

Implementation of a ticket queue system in JavaScript

I got this question during an interview. The question itself was very open-ended - it asked me to implement a ticket queue system, where by default it would have 3 different queues to hold tickets tha …
Joji's user avatar
  • 325
4 votes
1 answer
987 views

Design a simple card game in JavaScript

I wrote a simple card game in JavaScript and I wonder if anyone could give me some advice and make some improvements on my code. Here is the demo that I build: https://codesandbox.io/s/cardgame-his …
Joji's user avatar
  • 325
6 votes
1 answer
347 views

JavaScript: A drawing program in OOP

I made a little drawing program in OOP. The game consists of a canvas which is basically a 2d array where the user can draw various shapes on it. There can be multiple shapes overlapped on top of each …
Joji's user avatar
  • 325
4 votes
2 answers
1k views

implement the merge functionality for 2048 with JavaScript

I am trying to implement the game 2048 using JavaScript. I am using a two-dimensional array to represent the board. For each row, it is represented using an array of integers. Here I am focused on imp …
Joji's user avatar
  • 325
10 votes
3 answers
752 views

JavaScript OOD: 2048

I wrote a 2048 game in JavaScript with an object-oriented paradigm. The game board is presented with a two-dimensional array and each tile holds an integer. Here is the implementation: class Game { …
Joji's user avatar
  • 325