Variables in JavaScript Urdu | Frontend Development - S4 V7 Phase 3 #javascript #variables
In this tutorial, we will understand what is a variable, how its created and used along with jQuery.
REFERENCE FILE
https://drive.google.com/open?id=1FJP90qg4VMhBtH4SJWq9e1NEP4IiQtqK
Variable is a value-holding container. Means, it's just a name that can hold a value like your name, age, date of birth, etc. But why do we create a variable? There are number of reasons, but the following are important to understand:
1. So that we can use this in different locations of our application. Reason? Because we cannot write our name a million times by hand (or even copy paste). Reason? Because it's time consuming and error prone. Variables improve our work and project efficiency.
2. We need to manage all the instances from one place. For example, we have used a variable thousand times in different places. Now changing the value of the variable once will update every other instance. Variables provide us greater control over our content.
Now how to create a variable? That's really simple.
Just write the name of it and its created.
Really! it's just that simple. For example, I want to create a variable called "age" so that I can save my age in it. All I have to do it write the name of the variable like this:
age;
and then I have to tell my age to it - in numbers, like this:
age = 27;
Lo behold! The variable is created. But this is not really the only way to create it. There are three other ways, each having their own precise usability and need. In the above case, our need was simple, so we used a simple way to create it, but in larger applications we also need to know the other three ways of creating a JavaScript variable:
1 - var
2 - let
3 - const
A quick note on the "constant". As the name implies, a constant is something that cannot be changed once defined.This definition immediately raises one question. Does a variable then changes? The answer is Yes, but only when we want it to change. Constants cannot change whatsoever. Constants are mostly used or configurations and hard code referencing.
Var and Let are almost the same thing as just typing out the name as we did in the first example. But in advanced lessons you will learn that there are very clear differences in between the two. But for now, we can use them as synonyms.
Now where is jQuery in all that stuff?
As we know that we are working on a resume project, therefore we contextualize every thing in that project. In our project, we are creating clickable cards that display a popup with more information about that card. We need to reference those cards in a variable. Referencing in JavaScript is not just that easy, it takes little extra keystrokes and a little more human memory.
With the help of jquery we will reference all the cards that have the class ".project" and store in the variable called projectCards, like this:
let projectCards = $(".project");
The dollar sign is used to communicate with the HTML document and search the class project in it. All the elements matching the class are then saved in the variable called projectCards.
We can now alert() and console.log this variable to see what's in it for us, but we will quickly do that in the next lesson.
JavaScript Variables, Arrays and Objects [S4 V7 - Phase 3]
Muft or asaan tareekay se seekhen #HTML, #CSS, #JavaScript, #Angular 6, Angular CLI, #jQuery, #Bootstrap.
Learn development in easy examples and simple english. #HTML, #CSS, #JavaScript, #Angular 6, Angular CLI, #jQuery, #Bootstrap.
?COMPANY?
Web Development Labs, Ltd
http://bit.ly/2BTRs84
?EDUCATION PORTAL?
Updates, News and Tutorials
http://bit.ly/2BSHMuH
JOIN SLACK GROUP
https://join.slack.com/t/webdevelopmentlab/shared_invite/enQtNDYwMDM5NjI1MzYxLTU1NDQxMTFhYWRhYzY4M2E2OGIxMDgwZWZmYzMzZWQ5MzMwZGE0YTM2N2M0NjNhMmVjNjBiMjA4ZGU1MDlmN2E
? HTML TUTORIALS FOR BEGINNERS URDU-- [ http://bit.ly/2L53D57]
? CSS TUTORIALS FOR BEGINNERS URDU -- [ http://bit.ly/2KZxkUN ]
? JAVASCRIPT TUTORIALS FOR BEGINNERS URDU-- [http://bit.ly/2L25w2o]
? JAVASCRIPT TUTORIALS FOR BEGINNERS ENGLISH-- [http://bit.ly/2KYMpGi]
? BOOTSTRAP 4 TUTORIALS FOR BEGINNERS URDU-- [http://bit.ly/2KWMdHy ]
? ANGULAR TUTORIALS FOR BEGINNERS URDU-- [http://bit.ly/2KYfIZD]
? ADOBE ILLUSTRATOR TUTORIALS IN URDU FOR BEGINNERS - [http://bit.ly/2KYMpGi]
?OVERVIEW OF WEB DEVELOPMENT IN URDU -- [ http://bit.ly/2L53Hln]
? VISIT CHANNEL TO SEE EVERYTHING -- [ http://bit.ly/2KYhgmp ]
Weekly uploads are done.
Variables, arrays, objects, Front end development, web development, tutorial, course, development, front end, front-end, javascript, learn, urdu, variable, function, syntax, setup, js, example, function, example, function, syntax, javascript syntax, Javascript files, jquery, jquery files,jquery download, jquery installation, install jquery, jquery javascript, jquery latest, jquery effects,jquery animation, jquery difference, jquery syntax, jquery project, jquery example, ecmascript, version, js version Company:
http://webdevelopmentlabs.com
Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «Variables in JavaScript Urdu | Frontend Development - S4 V7 Phase 3 #javascript #variables», вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.
Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.
Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!
Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.