- Python
- Java
- C++
- C#
- C
- Visual Basic
- JavaScript
- PHP
- R
- SQL
O FOCO DO NOSSO SITE É MATEMÁTICA E PROGRAMAÇÃO DE SOFTWERE
<script>
// ola mundo em javascript
var ola = "ola mundo"
document.write()
/*opcoes para mostrar na tela:
Writing into an HTML element, using innerHTML.
Writing into the HTML output using document.write().
Writing into an alert box, using window.alert().
Writing into the browser console, using console.log().*/
</script>
<!DOCTYPE html>
<html>
<h1> escripts js</h1>
<script>
// classes em javascript
class soma_sub {
constructor(x, y){
this.x = x;
this.y = y;
}
soma(){
return this.x + this.y;
}
}
// aplicando a classe
result = new soma_sub(5,7);
document.write(result.soma());
</script>
<body>
</body>
</html>