Skip to content

Instantly share code, notes, and snippets.

@VarunBatraIT
Last active October 24, 2018 14:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save VarunBatraIT/c0858bc469a6aeb4fd2aa307e1c19158 to your computer and use it in GitHub Desktop.
Save VarunBatraIT/c0858bc469a6aeb4fd2aa307e1c19158 to your computer and use it in GitHub Desktop.
Basic Assignment

1

  • Use php to create 100 divs such that all the values inside divs must be a prime number in descending order starting from 99991.
  • Write a jQuery function which will hide the div is a user clicks on any of the prime number.

2

  • Create a PhysicalProduct class with all the necessary functionality.
  • Create a DigitalProduct class with all the necessary functionality.
  • Create a Cart class with all the necessary functionality which supports multiple carts - can add PhysicalProduct and DigitalProduct.

Assumptions - PhysicalProduct and DigitalProduct differs with only one flag - isDigital = true. Feel free to create as many supporting classes as necessary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment