Web development track | Computer Science homework help

Welcome to The Knowledge House 2021 Innovation Fellowship 

Pre-work for the Web Development track!

The following prework is meant to assess your ability to learn new concepts

quickly and apply them to problems you may not have seen before.

Assignment 1:

Make your computer shout you out!

Now write a script where you initialize a javascript variable that can NOT be


This solution and all other solution files should be saved in the pre-work directory

you will create:


Assignment 2:

Make your computer shout you out!

//Programming a computer seems complicated but in reality, it is just learning the commands

//your computer understands so you can make it do what you want it to do. The material does this

//to is data, that can be numbers, strings (sets of characters enclosed in “”), or a boolean which

//represents true and false, 0 or 1.

//In order for your computer to show text on a screen you must tell it what you want it to say with a

//console.log statement


console.log(“Hello World”)

//Output would be: Hello World

// you can also capture strings and number and save them under names called variables:

var greeting = “Hello World”


//Output would be: Hello World

//Ex 2

//You can also take words user’s input (or from other sources) and sub them into your string

//in the below example we have a variable that will save a users input for their favorite food:

fav_food = prompt(“What is your favorite food?”)

console.log( “My favorite food is ” + fav_food)


//”What is your favorite food?: Burgers”

//My favorite food is Burgers

Now write a script where your computer asks you for your name and then shouts you


This solution should be saved in the pre-work directory you created earlier in the




Simple Math:

Initialize two variables containing integers, multiply them, saving the result to a

third variable. Once done print the variable to the screen.

This solution should be saved in the pre-work directory you created earlier in the




Math and evaluation

//Programming uses numbers, but thankfully you don’t need to be a math genius to program.

//Programming can be used to evaluate mathematical statements, you can also compare numbers to each-other



//Output: 8



//OUTPUT: False

//We can also place a condition on the result of such a test:


var example = 7;

if (example > 8){

print “over”



print “under”


//OUTPUT: under

//You can do this to compare numbers to each-other

//Lastly we have arrays and loops, a array is just a collection of strings, numbers, or other pieces of data

var nums = [1,14,32,5,7]

console.log(nums.length;) //output is 5

//here we have a array of numbers we can write a for loop to array them out for us,

//Here we are setting the variable i to act as a placeholder for the item in the array we are printing

//i++ shows that after each run of the loop i is increased by 1, until i is greater than the length of the


for(var i=0; i<nums.length; i++){





Now create a loop that compares the array of numbers provided for the number 25,

console log over if it is over and under if it is under

over_under_array = [1,45,32,21,5,17,43,93]

This solution should be saved in your pre-work directory you created earlier in the




Loops part 2:

var array = [1,45,32,21,5,17,43,93];

Given the above array, create a loop that goes through each array item, multiplies

it by 7 and then prints the result to the screen.

This solution should be saved in your pre-work directory your created earlier in the




Given the below array, create a function which loops through each name, comparing

the length of each to determine the longest name, save that name to the variable

longest_name. Return longest_name to the another variable called answer and log the

answer variable to the screen.

var array = [ Retta, Vern, Marica, Cyrus,  Linette, Curt, Nichole, Jesica, Wynell, Michaele ]

This solution should be saved in your pre-work directory your created earlier in the





//all strings and arrays have individual characters and items respectfully represented by an index number

//this starts at 0, and can be accessed in bracket notation

var thing = “car”



array = [“one”,2,”3hree”]

array[2] // 3hree

//print both arrays and then return the even one and print it again.

Create a function that takes the below array of names, and separates them into two

arrays one of the names with an even number of letters and one with an odd number of


Then take the first letter of each of the names in the even array and make it the

letter “b”, take the last letter in each of the names in the odd array and make them

a “c”

Print both arrays and then return the even one to a variable named even_array and

print it again.

var names_array = [“bob”,”jimmy”,”max b”, “bernie”, “jordan”, “future hendrix”]

This solution should be saved in your pre-work directory your created earlier in the




Save all your solutions files in a folder called TKH_Prework

Now that all your solutions are saved to their files, your last step is to sign up

for and create a prework repo on Github.

Once the repo is created click on upload an existing file and select all your

solution files.

Once this is done, commit “Prework submitted” and upload them.


Draft an email to [email protected]

In the email subject line write “Full Name – Web Development”

Link the repo you created in the last step

Get 20% Discount on This Paper
Pages (550 words)
Approximate price: -

Try it now!

Get 20% Discount on This Paper

We'll send you the first draft for approval by at
Total price:

How it works?

Follow these simple steps to get your paper done

Place your order

Fill in the order form and provide all details of your assignment.

Proceed with the payment

Choose the payment system that suits you most.

Receive the final file

Once your paper is ready, we will email it to you.

Our Services

Quality Essay Help has stood as the world’s leading custom essay writing services providers. Once you enter all the details in the order form under the place order button, the rest is up to us.


Essay Writing Services

At Quality Essay Help, we prioritize on all aspects that bring about a good grade such as impeccable grammar, proper structure, zero-plagiarism and conformance to guidelines. Our experienced team of writers will help you completed your essays and other assignments.


Admission and Business Papers

Be assured that you’ll definitely get accepted to the Master’s level program at any university once you enter all the details in the order form. We won’t leave you here; we will also help you secure a good position in your aspired workplace by creating an outstanding resume or portfolio once you place an order.


Editing and Proofreading

Our skilled editing and writing team will help you restructure you paper, paraphrase, correct grammar and replace plagiarized sections on your paper just on time. The service is geared toward eliminating any mistakes and rather enhancing better quality.


Technical papers

We have writers in almost all fields including the most technical fields. You don’t have to worry about the complexity of your paper. Simply enter as much details as possible in the place order section.