Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within HTML Pages with CSS and JavaScript
Search Coderanch
Advance search
Google search
Register / Login
Win a copy of
Microservices Testing (Live Project)
this week in the
Spring
forum!
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Tim Cooke
Ron McLeod
Jeanne Boyarsky
Paul Clapham
Sheriffs:
Liutauras Vilda
Henry Wong
Devaka Cooray
Saloon Keepers:
Tim Moores
Stephan van Hulst
Tim Holloway
Al Hobbs
Carey Brown
Bartenders:
Piet Souris
Mikalai Zaikin
Himai Minh
Forum:
HTML Pages with CSS and JavaScript
Object properties.
Anunay Ashish
Greenhorn
Posts: 7
posted 19 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
When I am evaluating the property of a variable as
typeof(varName) it returns me object inspite of it having a
string
stored in it. Why doesn't it shows String instead of object?
Anunay Ashish<br />Software Engineer<br />India
Charlie Sturman
Ranch Hand
Posts: 112
posted 19 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
<script>
var obj = new Object()
obj.string = "catfood"
alert("typeof obj " + typeof obj + "\n" + "typeof obj.string " + typeof obj.string )
</script>
Charlie Sturman
Ranch Hand
Posts: 112
posted 19 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Re: javascript on ServerSide vs javascript client side.I have never used javascript serverside.
Sasparilla and fresh horses for all my men! You will see to it, won't you tiny ad?
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
what is string an object or literal ?
StringTokenizer question
proper Collection for my needs
String - immutable
about Constructor overloading
More...