हिंदी

Find out error if any in following javascript code. - Information Technology

Advertisements
Advertisements

प्रश्न

Find out error if any in following javascript code.

var length, breadth;
length=4.5;
breadth=6;
area=1/2*length*breadth;
document.write("Area of triangle is"area);
संक्षेप में उत्तर

उत्तर

The last line should be 

document.write("Area of triangle is " + area);
shaalaa.com
JavaScript Arithmetic Operators
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 3: Impressive Web Designing - Exercise [पृष्ठ ५७]

APPEARS IN

बालभारती Information Technology (IT) [English] 11 Standard Maharashtra State Board
अध्याय 3 Impressive Web Designing
Exercise | Q 6 | पृष्ठ ५७
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×