Giter Club home page Giter Club logo

week-8-assessment's Introduction

Week 8 Assessment

  • 1.Instructions:
    • Assessment time only one hour.

Question 1:

  • 1.Using notation of es5, create a constructor called Animal() with two properties:
    • animalName - i.e., 'Lussy'
    • type - i.e., 'Dog'
  1. Add two methods to the prototype:
  • animalName - return the name of the animal
  • createElement - create a new DOM element with jQuery
  1. Create an instance.
  2. Append the instance to the DOM

Question 2:

  • 1.Using notation of es6 create a class called shape() with three properties, all these properties are private:
    • height - i.e., '13CM'
    • length - i.e., '12CM'
    • area - i.e., '256CM2'
  1. Add one method :
  • getteArea - return the area
  1. Create an instance.
  2. Append the instance to the DOM

Question 3:

    1. Using notation of es6 and arrow function , make a function that filters an array of strings, the array filter depending on the length of the string, all the length above 4 should be excluded.
  • filter array(['Food','Pasta','Pizza','Eat']) - return ['food','Pasta','Eat']

Question 4:

    1. Create a github repository called 'my-assessment', the repository should contain one HTML file with your name in H1 tag, then upload your your files using git commands.

Question 5:

    1. Fork this repository, write your answers then upload them using git commands .

Good Luck !! :)

week-8-assessment's People

Contributors

alaamohammad avatar asemqaffaf avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.