"Professor - Objetos"
Bootstrap 4.1.1 Snippet by psd06t

<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <!------ Include the above in your HEAD tag ----------> <!DOCTYPE html> <html> <body> <h2>JavaScript Objects</h2> <p id="demo"></p> </body> </html>
// Create an object: var carro = { fabricante:"Fiat", modelo:"Uno", cor:"Prata" }; // Display some data from the object: document.getElementById("demo").innerHTML = "O Fabricante - " + "</br> " + carro.fabricante +"</br> " + "O modelo - "+"</br> " +carro.modelo+"</br>A cor - "+"</br> " +carro.cor;

Related: See More


Questions / Comments: