<html>
<head>
<script language="JavaScript">
function TriaAngle (base, height)
{
document.write("the area of the triangle is" +1/2*base*height)
}
</script></head>
<body>
<script language ="JavaScript">
var b=(prompt ("enter the base of the triangel"))
var h=(prompt ("enter the height of the triangle"))
TriaAngel (b,h)
</script ></body></html>
Area of Equilateral Triangle A= S2 * (Root 3)/4, where A= Area of the triangle S= Side of the triangle.
Area of hexagon= Area of original triangle/10
you split your shape in half, (The rectangle and the triangle), by putting a line through it and then calculate the area of the rectangle and then calculate the area of the triangle, half the area of the triangle then add the area of the triangle and the rectangle together!Then you should have your answer!
The area of a triangle is (1/2) x (length of the base) x (height of the triangle). You ought to be able to handle it from this point.
A base is normally a line and therefore has no area; the area of a triangle is half of base x altitude.
A JavaScript tutorial contains instructions that will teach you how to code in JavaScript.
jQuery is like an advanced JavaScript code. jQuery is a JavaScript code library that gives you more features with less code that what Javascript would require. If you understand JavaScript, jQuery wouldn't be much of a change.
Start the document with: <%@ language="javascript" %>
we can do this using of javascript. you can use this following code: <input type=button value="button" onClick=onclick_function()> here onclick_function() is a function which is called by javascript on clicking the button. javascript code is as follows: <script language="javascript" type="text/javascript"> // your code for onclick_function() function onclick_function(){ alert("Welcome to javascript"); } </script>
javascript: document.body.contentEditable = 'true'; document.designMode = 'on'; void 0
Use confirm or alert in javascript code to get a popup
JavaScript code looks like this:function sayhi(name) {alert("Hey there, "+name);}sayhi("joe");
If there is no actual error in the code itself, most likely javascript is disabled in the browser.
It is not possible to save and execute Javascript code on Roblox. You can save Javascript code as plain text in script objects, but there is no way to execute the code. Roblox uses a scripting language called LUA in-game which is somewhat similar to JavaScript, but it is not identicle. You can learn about LUA syntax on the Roblox wiki.
Yes
As reliable as the code writer.
Javascript code.