Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
JavaScript (not to be confused with Java) is a high-level, dynamic, multi-paradigm, weakly-typed language used for both client-side and server-side scripting. Use this tag for questions regarding common implementations of ECMAScript, JavaScript, JScript, etc. JS does not typically refer to its ECMA-cousin, ActionScript.
11
votes
Can Javascript code be encrypted making it hard for someone to copy?
It depends on what your javascript code does. Most of the javascript code that is difficult to reproduce is tied to something it expects from a web server such as JSON/XML/HTML data. … The customers can design the product the way they want it and the controls on the website rely heavily on javascript. …
2
votes
Five or fewer tips to writing good JavaScript?
Here are some questions that should get you going on JavaScript.
How does JSON work and what is it good for?
Why are functions objects in Javascript?
Why shouldn't I use eval? … How do I create events in javascript?
How do I feature detect in javascript?
Pretty much covers most things you need to do in Javascript. …
1
vote
Javascript - Avoiding variable redundancy in nested for loops
This is because variables are function scoped in JavaScript. So it doesn't matter how many times you var it in a function, it will be the same variable. …
1
vote
Single Page Web Application and Requiring JavaScript
Is it possible to create [a Single Page Application] that doesn't rely on JavaScript, without being difficult, or full of "hacks"? … If you're working with sites where disabled javascript/css is a requirement then SPA is probably not the best option for you. …
14
votes
Advantages of using pure JavaScript over JQuery
It is de facto internet standard to use javascript libraries, most of them are well documented by now and most web developers (who know javascript) know how to use them. … You don't really give up javascript when using a library. You still need to know Javascript with it's types, objects, how closures work, etc. …
3
votes
Accepted
Is there any way to limit the scope of a knockout.js application?
The scope to which elements knockout binds itself with is determined from the way you call ko.applyBindings. It takes two parameters, an object to be used as the root view model and an element to "app …
0
votes
What are the basic skills a beginner JavaScript programmer should have?
If I was relearning JavaScript I'd be thankful if I knew about closures earlier; or rather using functions as parameters in other functions. …
4
votes
Are there any OO-principles that are practically applicable for Javascript?
It is basically the observer pattern implemented in Javascript, and instead how most pub/sub frameworks are implemented, the "key" is the subject itself instead of an arbitrary object. … The usage is as follows:
// the subjects
// plain old javascript object with observable values
var shipComponent = {
velocity : observable(0)
};
// the observer, a player user interface
// implemented …
80
votes
2
answers
13k
views
Are there any OO-principles that are practically applicable for Javascript?
a framework (such as mootools Class.Class)
Generate it from Coffeescript
In the beginning I tended do write class based code in Javascript and heavily relied on it. … But are there any of them applicable for a prototype-based language such as Javascript?
Are there any principles or patterns that are just specific to Javascript? …