Question

Create an aaray of string data type of the form ["I","am","a","of","CSU""]. wRITE A JAVASCRIPT TO DISPLAY...

Create an aaray of string data type of the form ["I","am","a","of","CSU""]. wRITE A JAVASCRIPT TO DISPLAY the statement "I am a student of CSU".

0 0
Add a comment Improve this question Transcribed image text
Answer #1
var strings = ["I", "am", "a", "of", "CSU"];
console.log(strings[0] + " " + strings[1] + " " + strings[2] + " student " + strings[3] + " " + strings[4]);
Add a comment
Know the answer?
Add Answer to:
Create an aaray of string data type of the form ["I","am","a","of","CSU""]. wRITE A JAVASCRIPT TO DISPLAY...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Write a javascript function to match string starting with .AB or AB The string should either...

    Write a javascript function to match string starting with .AB or AB The string should either start with .AB or AB followed by any characters. i am getting confused how to form regular expression and tech and match using function . the string should match with the first two characters AB or first three characters .AB then only alert statement("string is correct") otherwise alert statement ("String is not correct") input1 : .AB2e234324 output: string is correct input2 : AB44r4r44r output:...

  • Create JavaScript to validate the form The form accepts some personal information, item quanitites, and a...

    Create JavaScript to validate the form The form accepts some personal information, item quanitites, and a shipping method. Your task is to ensure that the user inputs the correct data. In particular: The firstName, lastName, address, city, province, and postalCode fields must all have a value. The postalCode field must be 6 digits long The quantity fields for the widgits must contain a number greater than or equal to zero At least one item must be ordered The user must...

  • Notepad++ JavaScript Create an HTML file, using XHTML. Add JavaScript scripts to the file. Create 3...

    Notepad++ JavaScript Create an HTML file, using XHTML. Add JavaScript scripts to the file. Create 3 variables to hold the famous quote (NOTHING BUT THE QUOTE). My code so far. var firstQuote = "Give me a museum and I'll fill it." // I am stuck on the document.write part. How can i display it? document.write("1. Pablo Picasso says: "+firstQuote");

  • Write a javascript file Create an object constructor (using new and function ) to hold a...

    Write a javascript file Create an object constructor (using new and function ) to hold a recipes information. It has to include properties for title (a string), servings (a number), and ingredients (an array of strings). It also has to have a method called print(nOfServings). in your app, create a single object using this contractor and call its print method On separate lines (a Document.write() statement for each), log (display on console) the recipe information so it looks like: myObj.print(2)...

  • *** C++ *** Create a class called Student that contains a first name ( string) and...

    *** C++ *** Create a class called Student that contains a first name ( string) and an student id number (type long).     1. Include a member function called get_data( ) to get data from the user for insertion into the object,     2. Also include a function called display_data( ) that displays the student data. Then write a complete program that uses the class to do some computation. Your main function, main( ), should create a Dynamic Array of...

  • I am using Ocelot to write a program in JavaScript Our question is below: Write a...

    I am using Ocelot to write a program in JavaScript Our question is below: Write a function called removeBlueAndGreen that takes an image as an argument and returns a red version of the input image. To do so, create a copy of the input and iterate over each pixel. If the color of a pixel is (r, g, b) in the input image, its color in the output must be (r, 0.0, 0.0). Now is I write let robot =...

  • Create an external JavaScript file/code and then write a function that displays an alert box. This...

    Create an external JavaScript file/code and then write a function that displays an alert box. This box will display when the user clicks the submit button to submit the information typed in the form, so be sure the alert box contains an appropriate message. please use the OnClick event handler for your form's submit button.

  • Use JavaScript to write the code. Create a website that gets the current system date. After...

    Use JavaScript to write the code. Create a website that gets the current system date. After getting the system date, the variable should be converted to a string and then the parts extracted. You should have day of week, year, month, day of month. Display your results in the body of the website as a paragraph. You can use fucntions like indexof(), etc. to complete this.

  • 2. Write a JavaScript to create a. Alert Dialog Box b. Confirmation Dialog Box c. Prompt...

    2. Write a JavaScript to create a. Alert Dialog Box b. Confirmation Dialog Box c. Prompt Dialog box 3. Write a JavaScript to Change an image when a user holds down the mouse button. 4. Write a JavaScript to display all the cookies set on your machine. 5. Write a JavaScript to disable right click on the page

  • Create a web form to display the data from the database. Add the capability to insert,...

    Create a web form to display the data from the database. Add the capability to insert, update and delete data create your own form for data manipulation with buttons

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT