Array Practice 1

node v10.24.1
version: 1.0.0
endpointsharetweet
let a={ school:'vic pry ', state: 'oyo' } a.country='Nigeria' console.log(a) var person = { firstName: "John", lastName : "Doe", id : 5566, fullName : function() { return this.firstName + " " + this.lastName; } }; console.log(person.fullName()) a.b={colour:'black'} //console.log(a.school+''+a.b.colour) var cars = ["Saab", "Volvo", "BMW"]; console.log(cars) cars[0] = "Benz"; var person = {firstName:"John", lastName:"Doe", age:46}; var x = cars.length; var y = cars.sort(); var first = cars[0] var last = cars[cars.length - 1]; var cars, text, fLen, i; cars = ["Saab", "Volvo", "BMW"]; fLen = cars.length; text = "<ul>"; for (i = 0; i < fLen; i++) { text += "<li>" + cars[i] + "</li>"; } text += "</ul>";
Loading…

no comments

    sign in to comment