Questinos Css
Questinos Css
Write a Java script that initializes an array called flowers with the names of 3 flowers. The script then displays
array elements.
Write Java script to create person object with properties firstname, lastname, age, eye color, delete eye color
property and display remaining properties of person object.
State the meaning of “Defining a function”. Explain with the help of an example.
Write JavaScript to create a object “student” with properties roll number, name, branch, year. Delete branch
property and display remaining properties of student object.
4Marks Questions:
Explain getter and setter properties in Java script with suitable example.
Write a javascript function that accepts a string as a parameter and find the length of the string..
Write JavaScript code to perform following operations on string. (Use split() method) Input String : “Sudha
Narayana Murthy” Display output as First Name : Sudha Middle Name : Narayana Last Name : Murthy
Explain splice() method with Examples of Both Adding and removing Elements in Array.