Categories
5G Network
Agile
Amazon EC2
Android
Angular
Ansible
Arduino
Artificial Intelligence
Augmented Reality
AWS
Azure
Big Data
Blockchain
BootStrap
Cache Teachniques
Cassandra
Commercial Insurance
C#
C++
Cloud
CD
CI
Cyber Security
Data Handling
Data using R
Data Science
DBMS
Design-Pattern
DevOps
ECMAScript
Fortify
Ethical Hacking
Framework
GIT
GIT Slack
Gradle
Hadoop
HBase
HDFS
Hibernate
Hive
HTML
Image Processing
IOT
JavaScript
Java
Jenkins
Jira
JUnit
Kibana
Linux
Machine Learning
MangoDB
MVC
NGINX
Onsen UI
Oracle
PHP
Python
QTP
R Language
Regression Analysis
React JS
Robotic
Salesforce
SAP
Selenium
Service Discovery
Service Now
SOAP UI
Spark SQL
Testing
TOGAF
Research Method
Virtual Reality
Vue.js
Home
Recent Q&A
Feedback
Ask a Question
How can you read properties of an Object in JavaScript?
Home
>
JavaScript
>
How can you read properties of an Object in JavaScript?
asked
Oct 19, 2019
in
JavaScript
by
SakshiSharma
Q:
How can you read properties of an Object in JavaScript?
properties-javascript
javascript-properties
properties-of-javascript
Answer
1
Answer
0
votes
answered
Oct 19, 2019
by
rajeshsharma
You can write and read properties of an object using the dot notation as follows −
// Getting object properties
emp.name // ==> Zara
emp.age // ==> 10
// Setting object properties
emp.name = "Daisy" // <== Daisy
emp.age = 20 // <== 20
Click here to read more about JavaScript
Click here to read more about Insurance
Many hands make light work, Share it here
Facebook
Twitter
LinkedIn
Reddit
Related questions
0
votes
Q: What is arguments object in JavaScript?
asked
Oct 19, 2019
in
JavaScript
by
SakshiSharma
javascript-object
object-in-javascript
properties-javascript
0
votes
Q: How can you create an Object in JavaScript?
asked
Oct 19, 2019
in
JavaScript
by
SakshiSharma
javascript-object
object-in-javascript
+1
vote
Q: How to add/remove properties to object dynamically in Javascript?
asked
Jul 16, 2019
in
JavaScript
by
Indian
#java-script
0
votes
Q: In JavaScript, object is a container of properties and functions. Properties are identified by ____ and behavior is identified by
asked
Feb 6, 2020
in
JavaScript
by
rajeshsharma
#javascript-variables
0
votes
Q: How can you create an Array in JavaScript?
asked
Oct 19, 2019
in
JavaScript
by
SakshiSharma
javascript-object
object-in-javascript
javascript-array
array-in-javascript
0
votes
Q: Function in JavaScript is an object. True or False ?
asked
Feb 6, 2020
in
JavaScript
by
rajeshsharma
#javascript-object
0
votes
Q: Function in JavaScript is an object.
asked
Feb 6, 2020
in
JavaScript
by
rajeshsharma
#javascript-function
0
votes
Q: How can we create an object in JS?
asked
Jul 16, 2019
in
JavaScript
by
Indian
#java-script
+1
vote
Q: How to add one new element at end of an array in javascript?
asked
Jul 16, 2019
in
JavaScript
by
Indian
#java-script
+1
vote
Q: How to create an array in js and how to read array elements?
asked
Jul 16, 2019
in
JavaScript
by
Indian
#java-script
0
votes
Q: An expression is a JavaScript object that you pass to the compiled template
asked
Dec 6, 2020
in
JAVA
by
rajeshsharma
#javascript
+1
vote
Q: How do you open a read-only Shared Object Repository in QTP?
asked
Sep 12, 2020
in
QuickTest Professional (QTP)
by
JackTerrance
#qtp
+1
vote
Q: How To Get The Contents Of An Input Box Using Javascript?
asked
Dec 4, 2019
in
JavaScript
by
SakshiSharma
#javascript-inputbox
0
votes
Q: What Are Windows Object And Navigator Object In Javascript?
asked
Dec 3, 2019
in
JavaScript
by
rajeshsharma
#javascript-object
+1
vote
Q: How To Set The Focus In An Element Using Javascript?
asked
Dec 4, 2019
in
JavaScript
by
SakshiSharma
#javascript-element
0
votes
Q: How can you copy an object in Python?
asked
Jan 1
in
Python
by
SakshiSharma
#python-object-copy
0
votes
Q: How to change an element's class with JavaScript?
asked
Nov 15, 2020
in
JavaScript
by
rajeshsharma
#javascript-element
#javascript-error
+1
vote
Q: How To Access An External Javascript File That Is Stored Externally And Not Embedded?
asked
Dec 4, 2019
in
JavaScript
by
SakshiSharma
#javascript-file
+1
vote
Q: How to create an object in EXT JS?
asked
Aug 17, 2020
in
JavaScript
by
RShastri
#extjs
0
votes
Q: Can we create Cookie in Javascript if yes then how to create that?
asked
Aug 24, 2020
in
JavaScript
by
Hodge
#javascript
0
votes
Q: Can you access Cookie using javascript?
asked
Oct 19, 2019
in
JavaScript
by
SakshiSharma
cookie-access
cookies
javascript-cookies
0
votes
Q: How Do You Convert Numbers Between Different Bases In Javascript?
asked
Dec 3, 2019
in
JavaScript
by
rajeshsharma
#javascript-function
+1
vote
Q: How can you move element in lowercase to uppercase from an array?
asked
Jul 16, 2019
in
JavaScript
by
Indian
#java-script
0
votes
Q: How to read a JavaScript variable in Selenium WebDriver?
asked
Aug 22, 2019
in
Selenium
by
john ganales
#selenium-for-load-testing
selenium-bot-detection
selenium-for-ios
ios-selenium
automated-visual-testing-
selenium
load-testing-selenium
python-selenium
selenium-online-training-videos
learning-selenium
selenium-syllabus
selenium-tools-for-testing
selenium-element
+1
vote
Q: How Can Javascript Be Used To Personalize Or Tailor A Web Site To Fit Individual Users?
asked
Dec 4, 2019
in
JavaScript
by
SakshiSharma
#javascript-personalize
0
votes
Q: How Can Javascript Make A Web Site Easier To Use?
asked
Dec 3, 2019
in
JavaScript
by
rajeshsharma
#java-site
0
votes
Q: How Do You Submit A Form Using Javascript?
asked
Dec 3, 2019
in
JavaScript
by
rajeshsharma
#javascript-submit
0
votes
Q: Explain how you can add data using fixture into an application?
asked
Mar 12, 2020
in
JavaScript
by
GeorgeBell
0
votes
Q: Explain how you can create an Ember. handlebars template ?
asked
Mar 12, 2020
in
JavaScript
by
GeorgeBell
#ember
0
votes
Q: What is an Immediately Invoked Function in JavaScript?
asked
Dec 10, 2020
in
JavaScript
by
SakshiSharma
#function-invoke
#javascript-function
...