-
Write a code snippet about how
this
works in JavaScript and explain it. -
Write a code snippet explaining
forEach
andmap
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.- Examples: caravel127@caravel.ai, common@caravel.ai, cloud@caravel.ai
-
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 anHTML form
toadd
anddelete
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 iseven
then the messages should be printed on theright
side of the interface else to theleft
. -
Create a HTML Page with a
toggle button
(a slider), Initially the toggle should by off which enablesday-light mode
, the background of the webpage should be white, and color text should be black, whenever the user enables thenight 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 anHTML
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.
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
.