project4_answers.docx - Activity 1 1 What is the value of the \u2018CanYouSeeMe\u2019 input a TheCakeIsALie 2 The page references a single JavaScript file in

project4_answers.docx - Activity 1 1 What is the value of...

This preview shows page 1 out of 1 page.

Activity 1: 1. What is the value of the ‘CanYouSeeMe’ input? a. TheCakeIsALie 2. The page references a single JavaScript file in a script tag. Name this file including the file extension. a. cs6035.js 3. The script file has a JavaScript function named ‘runme’. Use the console to execute this function. What is the output that shows up in the console? a. 42 Activity2: 1. What request method (http verb) was used in the request to the server? a. POST 2. What status code did the server return? a. Include both the code and description. Ex: “200 Ok” b. 418 I’m a teapot 3. The server returned a cookie named ‘coffee’ for the browser to store. What is the value of this cookie? a. With_Cream Activity 3: 1. You can do more than just echo back text. Construct a URL such that a JavaScript alert dialog appears with the text cs6035 on the screen. Submit your constructed URL and a screenshot of the page as your answer. a. ? payload=<script>alert(“cs6035”)</script> b. You will lose all points if the URL doesn’t start with the string above. 2. You are required to use this template when submitting your constructed URL. This will be autograded so the template is used for that purpose only. a.

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture