Learn javaScript Basics- Day 4
HTML : html used for describing content CSS : css used for describing presentation of the content JavaScript : javascript used for describing behaviours Run JavaScript in VS Code node filename.js or, click run button in VS code create a launch.json file select node.js preview html and css are not programming language. JavaScript is a programming language. Programming is a set of instruction (which is written by programmer) that telling a computer what to do. What does the alert() function do? The alert function opens up a pop-up box with whatever text you pass to it. What does prompt() funtion do? The prompt function opens up a pop up box with a text field that allows the user to type an answer, which it will then return to code. Primitive values are hardcoded and therefore cannot be changed. if a=10, you can change the value of x you can not change 10 Javascript data types Numbers String booleans null undefined object function Numbers : JavaScript onl...