Skip to content

Instantly share code, notes, and snippets.

@vihar
Created December 4, 2018 12:56
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 vihar/dd5da9afab359221268878d3e4b70a7a to your computer and use it in GitHub Desktop.
Save vihar/dd5da9afab359221268878d3e4b70a7a to your computer and use it in GitHub Desktop.

Caravel.AI Intern Interview 2018

  • Write a code snippet about how this works in JavaScript and explain it.

  • Write a code snippet explaining forEach and map methods in JavaScript. Make your examples as creative as possible.

  • Write a code snippet which takes in an E-mail from the user and validates it using a regular expression. The Email should start with the letter c and end with @caravel.ai(domain). It can contain three numbers at the end. The email should not exceed ten letters.

  • Create a box in HTML with a gradient background color, whenever the page reloads the background color should be changing.

  • Create an array in JavaScript. create an HTML form to add and delete the elements from the last to the array.

  • Develop a chat interface in JavaScript consisting of a single message array. If the index of a message is even then the messages should be printed on the right side of the interface else to the left.

  • Create a HTML Page with a toggle button(a slider), Initially the toggle should by off which enables day-light mode, the background of the webpage should be white, and color text should be black, whenever the user enables the night mode, the background should change to black and text to white.()

  • Create an HTML Page in which the user selects a date from the calendar, calculate the number of days between the present date and the date given by the user.

  • Explain in detail about API in your own words(3 sentences), use the following API http://roadtrippers.herokuapp.com/api/v1/states/ and write a GET request in JQuery to display the States in an HTML page.

  • Write a Jquery/Ajax request to create an item using POST method for the following API - http://checklister-api.herokuapp.com/item/create/ The JavaScript Object Notation is of the format:

{
    "name": "Your Name",
    "description": "Hobbies",
    "is_complete": true,
    "priority": "H",
    "user": 1
}

Note: Don't change the value of user and priority.

Submission

Deadline: 7th December 2018 10PM

Add all your solutions to a single GitHub repository, all the explanations for each question should be added to a single README.txt file. Extra credits will be given for presentation of code as well. If you have any queries regarding the submission drop us a mail at sainath@caravel.ai.

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